/* Markenzoo Contao 5 — header, mega menu, footer */
/* Figma: Manrope headings, DM Sans body. Self-hosted (latin + latin-ext). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mz-green: #009845;
  --mz-green-dark: #006937;
  --mz-green-deep: #185f35;
  /* Figma Leistungen: muted kicker + deep title green (not bright brand green) */
  --mz-green-soft: #5c9678;
  --mz-green-forest: #255c44;
  --mz-footer-bg: #14211a;
  --mz-mint: #e7f3e9;
  --mz-section-muted: #f2f6f5;
  --mz-ink: #1a1a1a;
  --mz-muted: #767b78;
  --mz-icon: #59665c;
  --mz-white: #ffffff;
  --mz-header-h: 6rem;
  /* Shared content inset — backgrounds stay full-bleed; never pad the section bg */
  --mz-gutter: 1rem;
  --mz-container: 72rem;
  --mz-font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mz-font-heading: "Manrope", "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--mz-font);
  color: var(--mz-ink);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--mz-font-heading);
}

body {
  margin: 0;
  background: var(--mz-white);
  /* Header diamond/skew can paint past the viewport edge */
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.mz-container {
  width: min(100% - (var(--mz-gutter) * 2), var(--mz-container));
  margin-inline: auto;
}

/* ========== STYLEGUIDE / SHARED SECTIONS ========== */
.mz-section {
  padding: 4.5rem 0;
}

.mz-section--muted {
  background: var(--mz-section-muted);
}

.mz-section-head {
  margin-bottom: 2.5rem;
}

.mz-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--mz-font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mz-icon);
}

.mz-kicker--green {
  color: var(--mz-green-soft);
}

.mz-section-title {
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mz-ink);
}

/* ========== STARTSEITE HERO (fade slider) ========== */
.mz-hero {
  position: relative;
  width: 100%;
  /* Tall again (less empty page below); crop tuned per slide via object-position */
  min-height: calc(100vh - var(--mz-header-h));
  height: calc(100vh - var(--mz-header-h));
  background: #0c1610;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.mz-hero:active {
  cursor: grabbing;
}

.mz-hero__slider,
.mz-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.mz-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  pointer-events: none;
  z-index: 0;
}

/* Before JS: show first slide; after JS: only [data-active] */
.mz-hero__slider:not([data-mz-hero-ready]) .mz-hero__slide:first-child,
.mz-hero__slide[data-active] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.mz-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Prevent native browser image-drag ghost while swiping slides */
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Left readability shade — darker start, fades out sooner (less into the photo) */
.mz-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 22, 16, 0.77) 0%,
    rgba(12, 22, 16, 0.42) 22%,
    rgba(12, 22, 16, 0.1) 40%,
    rgba(12, 22, 16, 0) 52%
  );
  pointer-events: none;
  z-index: 1;
}

.mz-hero__content a {
  user-select: auto;
}

.mz-hero__content {
  --mz-hero-pad: clamp(1rem, 8vw, 7.5rem); /* 120px */
  /* Left on X, vertically centered on Y */
  position: absolute;
  left: var(--mz-hero-pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* pack to bottom of fixed slot */
  align-items: flex-start;
  text-align: left;
  width: min(40rem, calc(100% - (2 * var(--mz-hero-pad))));
  /* Fixed slot height → CTA / bottom edge never jumps */
  height: clamp(18rem, 38vh, 24rem);
  max-width: 40rem;
  padding: 0;
  color: var(--mz-white);
}

.mz-hero__kicker {
  margin: 0 0 0.4rem;
  font-family: var(--mz-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6abf4b; /* bright lime — readable on hero photos */
}

.mz-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 0.65rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--mz-white);
}

.mz-hero__title-line {
  display: block;
  color: var(--mz-white);
}

.mz-hero__text {
  margin: 0 0 1.1rem;
  max-width: 32rem;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.mz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.mz-hero__cta {
  background: var(--mz-green);
}

.mz-hero__cta:hover,
.mz-hero__cta:focus-visible {
  background: var(--mz-green-dark);
}

.mz-btn--outline-light {
  background: transparent;
  color: var(--mz-white);
  border: 1.5px solid var(--mz-white);
  box-sizing: border-box;
}

.mz-btn--outline-light:hover,
.mz-btn--outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mz-white);
  border-color: var(--mz-white);
}

.mz-hero__nav {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
  user-select: auto;
}

.mz-hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mz-hero__dot[aria-current="true"] {
  background: var(--mz-white);
  transform: scale(1.15);
}

.mz-hero__dot:focus-visible {
  outline: 2px solid var(--mz-white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .mz-hero__slide {
    transition: none;
  }
}

/* Hero placeholder (styleguide only) */
.mz-hero-placeholder {
  min-height: clamp(16rem, 42vw, 28rem);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 152, 69, 0.08), rgba(20, 33, 26, 0.06)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(20, 33, 26, 0.03) 12px,
      rgba(20, 33, 26, 0.03) 24px
    );
  border-bottom: 1px solid rgba(20, 33, 26, 0.06);
}

.mz-hero-placeholder__inner {
  text-align: center;
  padding: 2rem;
}

.mz-hero-placeholder__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mz-green);
  font-weight: 700;
}

.mz-hero-placeholder__title {
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--mz-ink);
}

.mz-hero-placeholder__hint {
  margin: 0.75rem 0 0;
  color: var(--mz-muted);
  font-size: 0.95rem;
}

/* ========== REDAKTIONS-STYLEGUIDE ========== */
.mz-styleguide__intro {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: var(--mz-white);
  border-bottom: 1px solid rgba(20, 33, 26, 0.08);
}

.mz-styleguide__title {
  margin: 0 0 0.75rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mz-ink);
}

.mz-styleguide__lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6b736f;
}

.mz-styleguide__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.mz-styleguide__toc a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mz-green-forest);
  text-decoration: none;
}

.mz-styleguide__toc a:hover,
.mz-styleguide__toc a:focus-visible {
  color: var(--mz-green);
  text-decoration: underline;
}

.mz-styleguide__block {
  scroll-margin-top: 1rem;
}

.mz-styleguide__label {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #14211a;
  color: #fff;
  border-bottom: 2px solid var(--mz-green);
}

.mz-styleguide__label-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.mz-styleguide__label-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mz-styleguide__name {
  font-family: var(--mz-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mz-styleguide__meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.mz-styleguide__meta code {
  font-size: 0.9em;
  color: #9fe0b8;
}

.mz-styleguide__hint {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.mz-styleguide__hint a {
  color: #9fe0b8;
  font-weight: 500;
}

.mz-styleguide__jump {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9fe0b8;
  text-decoration: none;
}

.mz-styleguide__jump:hover,
.mz-styleguide__jump:focus-visible {
  color: #fff;
}

/* ========== BAUSTEINE (shared originals preview) ========== */
.mz-bausteine-intro {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: var(--mz-white);
}

.mz-bausteine-intro__title {
  margin: 0 0 0.75rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mz-ink);
}

.mz-bausteine-intro__lead {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6b736f;
}

.mz-bausteine-intro__note {
  margin: 0;
  font-size: 0.9rem;
  color: #8a918d;
}

.mz-bausteine-intro__note a {
  color: var(--mz-green-forest);
  font-weight: 500;
}

.mz-bausteine-label {
  background: #14211a;
  color: #fff;
  border-bottom: 2px solid var(--mz-green);
}

.mz-bausteine-label__inner {
  padding: 0.85rem 0;
}

.mz-bausteine-label__name {
  margin: 0 0 0.2rem;
  font-family: var(--mz-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mz-bausteine-label__meta {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== LEISTUNGEN TEASER SLIDER ========== */
.mz-leistungen-slider .mz-slider {
  position: relative;
}

.mz-leistungen-slider .tns-item {
  display: flex;
  justify-content: center;
  text-align: center;
}

.mz-teaser-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.75rem 1.25rem;
  color: inherit;
  transition: transform 0.2s ease;
}

.mz-teaser-link:hover,
.mz-teaser-link:focus-visible {
  transform: translateY(-3px);
}

.mz-teaser-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
}

.mz-teaser-link__icon img {
  display: block;
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.mz-teaser-link__eyebrow {
  display: block;
  width: 100%;
  margin-bottom: 0.45rem;
  font-family: var(--mz-font);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #72817a;
  line-height: 1.35;
  text-align: center;
}

.mz-teaser-link__title {
  display: block;
  width: 100%;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mz-green-forest);
  text-align: center;
}

/* Equal 3-up grid — same teaser language as Startseite slider, no carousel */
.mz-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  width: 100%;
  align-items: start;
}

.mz-teaser-grid > .mz-teaser-link {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.mz-teaser-link__icon--logo {
  width: 7.5rem;
  height: 4.5rem;
}

.mz-teaser-link__icon--logo img {
  width: 100%;
  height: 100%;
  max-width: 7.5rem;
  max-height: 3.75rem;
  object-fit: contain;
}

@media (max-width: 960px) {
  .mz-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .mz-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* Dot nav (tiny-slider) */
.mz-slider .tns-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.mz-slider .tns-nav button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 26, 0.22);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mz-slider .tns-nav button:hover,
.mz-slider .tns-nav button:focus-visible {
  background: rgba(20, 33, 26, 0.45);
}

.mz-slider .tns-nav button.tns-nav-active {
  background: var(--mz-green-forest);
  transform: scale(1.15);
}

/* tiny-slider overrides inside our slider */
.mz-slider .tns-outer {
  position: relative;
}

.mz-slider .tns-ovh {
  overflow: hidden;
}

/* Keep first slide flush with .mz-container left edge (no extra item inset) */
.mz-slider .tns-item {
  padding: 0;
}

/* ========== SHARED BUTTON ========== */
.mz-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--mz-font);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mz-btn--primary {
  background: var(--mz-green);
  color: var(--mz-white);
}

.mz-btn--primary:hover,
.mz-btn--primary:focus-visible {
  background: var(--mz-green-dark);
  color: var(--mz-white);
}

.mz-btn__arrow {
  font-size: 1.05em;
  line-height: 1;
}

.mz-btn--on-dark {
  background: var(--mz-white);
  color: var(--mz-green-dark);
}

.mz-btn--on-dark:hover,
.mz-btn--on-dark:focus-visible {
  background: #f3f7f4;
  color: var(--mz-green-dark);
  transform: translateY(-1px);
}

/* ========== EXPERTISE / KERWERTE SLIDER ========== */
.mz-expertise {
  background: var(--mz-white);
}

.mz-expertise-slider .tns-outer,
.mz-expertise-slider .tns-ovh,
.mz-expertise-slider .tns-inner,
.mz-expertise-slider .mz-slider-track {
  height: auto;
}

.mz-expertise-slider .tns-item {
  display: block;
  text-align: left;
  vertical-align: top;
  box-sizing: border-box;
}

.mz-expertise__slide {
  width: 100%;
  height: 100%;
}

.mz-expertise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  height: 100%;
}


.mz-expertise__media {
  position: relative;
  max-width: 28rem;
  width: 100%;
  /* Room for triangle peeking from behind top-left */
  padding-top: 0.85rem;
  padding-left: 0.85rem;
}

/*
  Right triangle behind the photo (right angle = outer top-left).
  Hypotenuse sits under the image → only an L-shaped peek shows.
*/
.mz-expertise__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--mz-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 0;
}

/*
  Shared: top-left peek triangles drift up & out on hover.
*/
.mz-expertise__corner,
.mz-insights-card__corner,
.mz-person-tile__corner,
.mz-location-tile__corner {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mz-expertise__media:hover .mz-expertise__corner,
.mz-insights-card:hover .mz-insights-card__corner,
.mz-insights-card:focus-within .mz-insights-card__corner,
.mz-person-tile:hover .mz-person-tile__corner,
.mz-person-tile:focus-within .mz-person-tile__corner,
.mz-location-tile:hover .mz-location-tile__corner {
  transform: translate(-0.2rem, -0.2rem);
}

@media (prefers-reduced-motion: reduce) {
  .mz-expertise__corner,
  .mz-insights-card__corner,
  .mz-person-tile__corner,
  .mz-location-tile__corner {
    transition: none;
  }

  .mz-expertise__media:hover .mz-expertise__corner,
  .mz-insights-card:hover .mz-insights-card__corner,
  .mz-insights-card:focus-within .mz-insights-card__corner,
  .mz-person-tile:hover .mz-person-tile__corner,
  .mz-person-tile:focus-within .mz-person-tile__corner,
  .mz-location-tile:hover .mz-location-tile__corner {
    transform: none;
  }
}

.mz-expertise__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  /* Slightly shorter than 3/4 — crops bottom of portraits, less empty text column */
  aspect-ratio: 5 / 6;
  background: var(--mz-section-muted);
}

.mz-expertise__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.mz-expertise__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: auto;
  width: 100%;
  max-width: 34rem;
}

.mz-expertise__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mz-font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b736f;
}

.mz-expertise__title {
  margin: 0 0 1.35rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--mz-ink);
}

/* Full-width copy — no flex grow (avoids a tall gap before stats) */
.mz-expertise__copy {
  width: 100%;
  flex: 0 0 auto;
  margin: 0 0 1.25rem;
}

.mz-expertise__copy p {
  margin: 0;
  width: 100%;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #818684;
}

.mz-expertise__copy em {
  font-style: italic;
}

/* CTA hugs content, sits on the right of the column */
.mz-expertise__content > .mz-btn {
  align-self: flex-end;
  width: auto;
  max-width: max-content;
}

.mz-expertise__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(20, 33, 26, 0.12);
  border-bottom: 1px solid rgba(20, 33, 26, 0.12);
}

.mz-expertise__stat {
  text-align: center;
}

.mz-expertise__stat dt {
  margin: 0 0 0.35rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mz-green);
}

.mz-expertise__stat dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #8a918d;
}

.mz-expertise-slider .tns-nav {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .mz-expertise__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mz-expertise__media {
    max-width: 22rem;
    margin-inline: auto;
  }

  .mz-expertise__content {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .mz-expertise__stats {
    gap: 0.65rem;
  }

  .mz-expertise__stat dd {
    font-size: 0.7rem;
  }
}

/* ========== QUOTE BANNER ========== */
.mz-quote {
  /* Match CTA: darker field, lighter triangle */
  --mz-quote-bg: #006130;
  --mz-quote-tri: #006e35;
  --mz-quote-mark: #8fd4a8;
  /* Uniform scale (keeps tip angle) + horizontal shift */
  --mz-quote-tri-size: clamp(22rem, 48vw, 34rem);
  --mz-quote-tri-x: -1.25rem;
  position: relative;
  background: var(--mz-quote-bg);
  color: var(--mz-white);
  overflow: hidden;
}

/*
  Right-pointing triangle — fixed proportions (1 : 0.42).
  Sized taller than the band so overflow clips top/bottom; tip stays sharp.
  Tune: --mz-quote-tri-size (scale), --mz-quote-tri-x (← / →).
*/
.mz-quote__accent {
  position: absolute;
  left: var(--mz-quote-tri-x);
  top: 50%;
  width: calc(var(--mz-quote-tri-size) * 0.42);
  height: var(--mz-quote-tri-size);
  background: var(--mz-quote-tri);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.mz-quote__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6.5vw, 4.75rem) 0;
  display: flex;
  justify-content: flex-start;
  /* Clear the triangle tip, then sit the copy block */
  padding-left: clamp(6.5rem, 18vw, 12.5rem);
}

.mz-quote__blockquote {
  position: relative;
  margin: 0;
  max-width: min(58rem, 100%);
  width: 100%;
  text-align: left;
  /* Space between big decorative marks and the copy */
  padding-left: clamp(4.5rem, 7vw, 6rem);
}

.mz-quote__mark {
  position: absolute;
  left: 0;
  top: -0.35rem;
  width: clamp(3.5rem, 6.5vw, 5.25rem);
  color: var(--mz-quote-mark);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.mz-quote__mark img {
  display: block;
  width: 100%;
  height: auto;
}

.mz-quote__text {
  margin: 0;
  max-width: 62ch;
  /* Figma: geometric sans (DM Sans), not Manrope */
  font-family: var(--mz-font);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--mz-white);
  text-align: left;
}

.mz-quote__text::before {
  content: "„";
}

.mz-quote__text::after {
  content: "“";
}

.mz-quote__footer {
  margin-top: 1.5rem;
  text-align: left;
}

.mz-quote__cite {
  font-family: var(--mz-font);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

/* ========== INSIGHTS / NEWS + LINKEDIN ========== */
.mz-insights__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.mz-insights__titles .mz-section-title {
  margin-top: 0;
}

.mz-insights__follow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mz-green);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mz-insights__follow:hover,
.mz-insights__follow:focus-visible {
  color: var(--mz-green-dark);
}

.mz-insights__follow-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: inherit;
}

.mz-insights__follow-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mz-insights__slider {
  position: relative;
}

.mz-insights__slider .tns-item {
  display: flex;
  height: 100%;
}

.mz-insights-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.mz-insights-card__media {
  position: relative;
  display: block;
  margin-bottom: 1rem;
  /* Room for triangle peeking from behind top-left (same as expertise) */
  padding-top: 0.7rem;
  padding-left: 0.7rem;
}

/*
  Right triangle behind the photo (right angle = outer top-left).
  Hypotenuse sits under the image → only an L-shaped peek shows.
*/
.mz-insights-card__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 4.25rem;
  height: 4.25rem;
  background: var(--mz-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.mz-insights-card__frame {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f0;
}

.mz-insights-card__frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* LinkedIn / carousel placeholder — mirrors video card material */
.mz-insights-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #eef2f0;
  overflow: hidden;
}

.mz-insights-card__shape {
  position: absolute;
  width: 38%;
  height: 42%;
  background: #cfe6d6;
  pointer-events: none;
}

.mz-insights-card__shape--tr {
  top: 0;
  right: 0;
  clip-path: polygon(30% 0, 100% 0, 100% 100%);
}

.mz-insights-card__shape--bl {
  left: 0;
  bottom: 0;
  clip-path: polygon(0 0, 0 100%, 70% 100%);
}

.mz-insights-card__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.mz-insights-card__logo {
  display: block;
  width: min(14rem, 72%);
  height: auto;
}

.mz-insights-card__li-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.3rem;
  background: var(--mz-green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 33, 26, 0.18);
}

.mz-insights-card__li-badge img {
  width: 0.95rem;
  height: 0.95rem;
  filter: brightness(0) invert(1);
}

.mz-insights-card__meta {
  margin: 0 0 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a918d;
}

.mz-insights-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--mz-ink);
}

.mz-insights-card__title a {
  color: inherit;
  text-decoration: none;
}

.mz-insights-card__title a:hover,
.mz-insights-card__title a:focus-visible {
  color: var(--mz-green-dark);
}

.mz-insights-card__teaser {
  margin: 0 0 1.15rem;
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #6b736f;
}

.mz-insights-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mz-green);
  text-decoration: none;
}

.mz-insights-card__more:hover,
.mz-insights-card__more:focus-visible {
  color: var(--mz-green-dark);
}

@media (max-width: 900px) {
  .mz-insights__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== ÜBER UNS ========== */
/* Über uns hero trial — full-bleed banner */
.mz-about-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e8eeea;
  line-height: 0;
}

.mz-about-hero__img {
  display: block;
  width: 100%;
  height: clamp(16rem, 42vw, 32rem);
  object-fit: cover;
  /* Prefer the walking group over empty sky/trees */
  object-position: center 75%;
}

/* ========== STARTSEITE INTRO (under hero) ========== */
.mz-intro.mz-section {
  position: relative;
  padding-top: clamp(5rem, 9vw, 7.5rem);
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
  overflow: hidden;
  background: var(--mz-white);
}

/*
  Soft intro accent — same brand triangle as quote/values (1 : 0.42).
  Anchored top-left and oversized so overflow clips: peeks out from the edge
  (not vertically centered). Tip stays at 50% of the triangle itself.
*/
.mz-intro__shape {
  --mz-intro-tri-size: clamp(32rem, 68vw, 48rem);
  position: absolute;
  left: -4.5rem;
  top: -18%;
  width: calc(var(--mz-intro-tri-size) * 0.42);
  height: var(--mz-intro-tri-size);
  background: #e8eeea;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

/* Same content edges as header / Leistungen / rest via shared .mz-container */
.mz-intro__inner.mz-container {
  position: relative;
  z-index: 1;
}

.mz-intro__title {
  margin: 0 0 1.35rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mz-ink);
}

.mz-intro__body {
  max-width: min(72rem, 100%);
}

.mz-intro__body p {
  margin: 0 0 1.1rem;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: #5c6560;
}

.mz-intro__body p:last-child {
  margin-bottom: 0;
}

.mz-intro__body strong {
  font-weight: 700;
  color: var(--mz-ink);
}

.mz-about-intro.mz-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.mz-about-why.mz-section {
  padding-top: 2rem;
}

.mz-about-intro__title {
  margin: 0 0 2rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mz-ink);
}

.mz-about-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.mz-about-intro__lead p,
.mz-about-intro__body p,
.mz-about-marketing__copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5c6560;
}

.mz-about-intro__lead p:last-child,
.mz-about-intro__body p:last-child,
.mz-about-marketing__copy p:last-child {
  margin-bottom: 0;
}

.mz-about-intro__lead p {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--mz-ink);
  font-weight: 400;
}

.mz-about-intro__claim {
  margin-top: 1.25rem !important;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: var(--mz-green-forest) !important;
}

/* Effizienz block under team */
.mz-about-marketing__inner {
  max-width: 46rem;
}

/* Unsere Werte — same green system as quote / CTA */
.mz-about-values {
  --mz-values-bg: #006130;
  --mz-values-tri: #006e35;
  --mz-values-tri-size: clamp(18rem, 40vw, 28rem);
  --mz-values-tri-x: -1rem;
  position: relative;
  background: var(--mz-values-bg);
  color: var(--mz-white);
  overflow: hidden;
}

.mz-about-values__accent {
  position: absolute;
  left: var(--mz-values-tri-x);
  top: 50%;
  width: calc(var(--mz-values-tri-size) * 0.42);
  height: var(--mz-values-tri-size);
  background: var(--mz-values-tri);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.mz-about-values__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  text-align: left;
}

.mz-about-values__inner p {
  margin: 0;
  font-family: var(--mz-font);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--mz-white);
  text-align: left;
}

.mz-about-values__inner p + p {
  margin-top: 0.85rem;
}

.mz-about-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  counter-reset: mz-why;
}

.mz-about-tile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  min-width: 0;
}

.mz-about-tile__index {
  font-family: var(--mz-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mz-green);
}

.mz-about-tile__index::before {
  counter-increment: mz-why;
  content: counter(mz-why, decimal-leading-zero);
}

.mz-about-tile__title {
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--mz-green-forest);
}

.mz-about-tile__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b736f;
}

.mz-about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.mz-person-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  /* Room for triangle peeking outside the white card */
  padding-top: 0.65rem;
  padding-left: 0.65rem;
}

.mz-person-tile__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--mz-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.mz-person-tile__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--mz-white);
  overflow: hidden;
}

.mz-person-tile__media {
  margin: 0;
  line-height: 0;
}

.mz-person-tile__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem 1.15rem 1.25rem;
}

.mz-person-tile__photo,
.mz-person-tile__avatar {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  background: #e8efea;
}

.mz-person-tile__avatar {
  display: grid;
  place-items: center;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mz-green-forest);
}

.mz-person-tile__role {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
  line-height: 1.35;
}

.mz-person-tile__name {
  margin: 0 0 0.55rem;
  font-family: var(--mz-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mz-ink);
}

.mz-person-tile__bio {
  margin: 0;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b736f;
}

.mz-person-tile__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 33, 26, 0.1);
}

.mz-person-tile__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--mz-green-forest);
  text-decoration: none;
  line-height: 1.4;
  word-break: break-word;
}

.mz-person-tile__icon {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
}

.mz-person-tile__contact:hover,
.mz-person-tile__contact:focus-visible {
  color: var(--mz-green);
}

.mz-about-locations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.mz-location-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mz-location-tile__media {
  position: relative;
  padding-top: 0.7rem;
  padding-left: 0.7rem;
}

.mz-location-tile__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 4.25rem;
  height: 4.25rem;
  background: var(--mz-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.mz-location-tile__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 11rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #eef2f0;
}

.mz-location-tile__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
}

.mz-location-tile__city {
  margin: 0 0 0.35rem;
  font-family: var(--mz-font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--mz-ink);
}

.mz-location-tile__address,
.mz-location-tile__contact {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b736f;
}

.mz-location-tile__contact a {
  color: var(--mz-green-forest);
  text-decoration: none;
}

.mz-location-tile__contact a:hover,
.mz-location-tile__contact a:focus-visible {
  color: var(--mz-green);
}

@media (max-width: 900px) {
  .mz-about-intro__grid,
  .mz-about-why__grid,
  .mz-about-locations__grid {
    grid-template-columns: 1fr;
  }

  .mz-about-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mz-about-team__grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

/* ========== CTA BANNER ========== */
.mz-cta {
  /* Figma: darker field, lighter triangle; mint kicker/body */
  --mz-cta-bg: #006130;
  --mz-cta-tri: #006e35;
  --mz-cta-kicker: #8fd4a8;
  /* Uniform scale (keeps tip angle) + horizontal shift from the right */
  --mz-cta-tri-size: clamp(24rem, 52vw, 38rem);
  --mz-cta-tri-x: -1.5rem;
  position: relative;
  background: var(--mz-cta-bg);
  color: var(--mz-white);
  overflow: hidden;
}

/*
  Left-pointing triangle — same brand proportions as quote (1 : 0.42).
  Tune: --mz-cta-tri-size (scale), --mz-cta-tri-x (← / → from right edge).
*/
.mz-cta__accent {
  position: absolute;
  right: var(--mz-cta-tri-x);
  top: 50%;
  width: calc(var(--mz-cta-tri-size) * 0.42);
  height: var(--mz-cta-tri-size);
  background: var(--mz-cta-tri);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.mz-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}

.mz-cta__kicker {
  margin: 0 0 1rem;
  font-family: var(--mz-font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mz-cta-kicker);
}

.mz-cta__title {
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mz-white);
}

.mz-cta__action {
  max-width: 26rem;
}

.mz-cta__text {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mz-cta-kicker);
}

@media (max-width: 900px) {
  .mz-cta__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ========== MINI CTA / TRENNER ==========
   Compact mid-page band (OG Call-To-Action role).
   Full-bleed muted ground; content in .mz-container.
   Reuse: one Contao original + Include (type alias).
*/
.mz-cta-mini {
  background: var(--mz-section-muted);
}

.mz-cta-mini__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.35rem 0;
}

.mz-cta-mini__title {
  margin: 0;
  flex: 1 1 auto;
  max-width: 38rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--mz-green-forest);
}

.mz-cta-mini__btn {
  flex: 0 0 auto;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .mz-cta-mini__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .mz-cta-mini__title {
    max-width: none;
  }
}

/* ========== VIDEO TEASER ========== */
.mz-video {
  background: var(--mz-white);
}

.mz-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.mz-video__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a918d;
}

.mz-video__title {
  margin: 0 0 1.15rem;
  max-width: 18ch;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mz-ink);
}

.mz-video__text {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #6b736f;
}

.mz-video__play-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--mz-ink);
}

.mz-video__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--mz-green);
  color: var(--mz-white);
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mz-video__play-icon svg {
  display: block;
  margin: 0;
}

.mz-video__play-label {
  font-weight: 600;
  font-size: 1rem;
}

.mz-video__play-link:hover .mz-video__play-icon,
.mz-video__play-link:focus-visible .mz-video__play-icon {
  background: var(--mz-green-dark);
  transform: scale(1.04);
}

.mz-video__card {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 2rem;
  border: 0;
  border-radius: 0.35rem;
  background: #eef2f0;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}

.mz-video__shape {
  position: absolute;
  width: 38%;
  height: 42%;
  background: #cfe6d6;
  pointer-events: none;
}

.mz-video__shape--tr {
  top: 0;
  right: 0;
  clip-path: polygon(30% 0, 100% 0, 100% 100%);
}

.mz-video__shape--bl {
  left: 0;
  bottom: 0;
  clip-path: polygon(0 0, 0 100%, 70% 100%);
}

.mz-video__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.mz-video__logo {
  display: block;
  width: min(18rem, 68%);
  height: auto;
}

.mz-video__card-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  background: var(--mz-green);
  color: var(--mz-white);
  box-shadow: 0 12px 28px rgba(0, 152, 69, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.mz-video__card-play svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 0 0.15rem; /* optical center for triangle */
}

.mz-video__card:hover .mz-video__card-play,
.mz-video__card:focus-visible .mz-video__card-play {
  background: var(--mz-green-dark);
  transform: scale(1.05);
}

.mz-video__meta {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a918d;
}

.mz-video-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(56rem, calc(100vw - 2rem));
  width: 100%;
}

.mz-video-dialog::backdrop {
  background: rgba(20, 33, 26, 0.72);
}

.mz-video-dialog__panel {
  position: relative;
  background: #000;
  border-radius: 0.35rem;
  overflow: hidden;
}

.mz-video-dialog__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mz-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mz-video-dialog__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.mz-video-dialog__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .mz-video__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mz-video__title {
    max-width: none;
  }
}

/* ========== HEADER ========== */
/* Same technique as Contao 4.13: skew ::before + rotated .element diamond */
#header {
  position: relative;
  z-index: 40;
  background: var(--mz-white);
  min-height: var(--mz-header-h);
  /* Must stay visible for mega menus (overflow-x:hidden would clip them too) */
  overflow: visible;
}

#header .inside {
  position: relative;
  z-index: 10;
}

#header::before {
  content: " ";
  position: absolute;
  display: block;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: var(--mz-green);
  transform: skewX(-45deg);
  pointer-events: none;
  z-index: 1;
}

@media screen and (min-width: 769px) {
  #header::before {
    width: 60%;
  }
}

@media screen and (min-width: 1216px) {
  #header::before {
    width: 50%;
  }
}

#header .element {
  position: absolute;
  display: block;
  right: 0;
  top: 100%;
  width: 4rem;
  height: 4rem;
  background-color: var(--mz-green-dark);
  transform: translate(50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

@media screen and (min-width: 769px) {
  #header .element {
    width: 6rem;
    height: 6rem;
  }
}

@media screen and (min-width: 1024px) {
  #header .element {
    width: 8rem;
    height: 8rem;
  }
}

@media screen and (min-width: 1216px) {
  #header .element {
    width: 10rem;
    height: 10rem;
  }
}

@media screen and (min-width: 1408px) {
  #header .element {
    width: 12rem;
    height: 12rem;
  }
}

@media screen and (min-width: 1600px) {
  #header .element {
    width: 14rem;
    height: 14rem;
  }
}

.mz-header-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--mz-header-h);
  padding-block: 1rem;
}

/* Skip link: first focusable control for keyboard / a11y audits */
.mz-skip-link {
  position: absolute;
  left: var(--mz-gutter, 1rem);
  top: 0.75rem;
  z-index: 10000;
  padding: 0.55rem 0.9rem;
  background: var(--mz-green-forest, #255c44);
  color: #fff;
  font: 500 0.875rem/1.2 var(--mz-font, system-ui, sans-serif);
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.mz-skip-link:focus,
.mz-skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mz-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 18rem;
}

.mz-logo img {
  width: 100%;
  height: auto;
}

.mz-nav-wrap {
  /* static so .mz-mega can position against .mz-header-bar */
  position: static;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.mz-nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  /* keep static so .mz-mega positions against .mz-header-bar */
  position: static;
  z-index: 3;
}

.mz-nav-panel .mod_html,
.mz-nav-panel .mod_navigation {
  margin: 0;
  background: transparent;
}

/* Contao .block sets overflow:hidden and clips the mega menu */
#header .mod_navigation {
  overflow: visible;
}

.mz-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.mz-nav > li {
  position: relative;
  margin: 0;
}

/* Mega anchors to the full header bar, not the narrow li (avoids overflow) */
.mz-nav > li.submenu {
  position: static;
}

.mz-nav > li > a,
.mz-nav > li > strong {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--mz-white);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-block: 0.35rem;
}

.mz-nav > li > a:hover,
.mz-nav > li > a:focus-visible,
.mz-nav > li.trail > a,
.mz-nav > li.active > a,
.mz-nav > li.active > strong {
  opacity: 0.9;
}

.mz-nav .mz-nav-chevron {
  position: relative;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--mz-white);
  display: inline-block;
  transform: translateY(1px);
}

/* Larger tap target for mega toggle on mobile (label still navigates) */
.mz-nav .mz-nav-chevron::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.65rem -0.65rem -0.55rem;
}

.mz-btn-kontakt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  border: 1.5px solid var(--mz-white);
  border-radius: 999px;
  color: var(--mz-white);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.mz-btn-kontakt:hover,
.mz-btn-kontakt:focus-visible {
  background: var(--mz-white);
  color: var(--mz-green);
}

/* ========== MEGA MENU — shared size, right-aligned ========== */
.mz-mega {
  --mz-mega-radius: 0.5rem;
  --mz-mega-w: min(72rem, 100%);
  --mz-mega-h: 22rem;
  position: absolute;
  left: auto;
  right: 0;
  top: calc(100% + 0.35rem);
  margin-inline: 0;
  transform: none;
  width: var(--mz-mega-w);
  min-height: var(--mz-mega-h);
  height: var(--mz-mega-h);
  background: var(--mz-white);
  border: 0;
  border-top: 0;
  border-radius: var(--mz-mega-radius);
  box-shadow:
    0 4px 6px rgba(20, 33, 26, 0.04),
    0 18px 48px rgba(20, 33, 26, 0.14);
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(15.5rem, 0.75fr) 1.85fr;
}

/* Branchen / Über uns — tighter than Leistungen (only 2 link columns) */
.mz-mega--branchen,
.mz-mega--about {
  --mz-mega-h: auto;
  width: min(48rem, 100%);
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(12.5rem, 0.85fr) 1.35fr;
}

/* Hover bridge — invisible hit area above panel (no visible caret) */
.mz-mega::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.55rem;
  pointer-events: auto;
}

.mz-nav > li.submenu:hover > .mz-mega,
.mz-nav > li.submenu:focus-within > .mz-mega,
.mz-nav > li.submenu.is-open > .mz-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mz-mega-intro {
  background: var(--mz-mint);
  padding: 1.75rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  border-radius: var(--mz-mega-radius) 0 0 var(--mz-mega-radius);
}

.mz-mega-kicker {
  margin: 0 0 0.95rem;
  font-family: var(--mz-font);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mz-icon);
  font-weight: 500;
}

.mz-mega-intro h2,
.mz-mega-intro__title {
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.35rem, 1.7vw, 1.6rem);
  line-height: 1.25;
  color: var(--mz-ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mz-mega-intro p:not(.mz-mega-intro__title) {
  margin: 0 0 1.6rem;
  color: var(--mz-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 16.5rem;
}

.mz-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--mz-green);
  font-weight: 500;
  font-size: 0.9375rem;
}

.mz-mega-cta:hover,
.mz-mega-cta:focus-visible {
  color: var(--mz-green-dark);
}

.mz-mega-cta::after {
  content: "→";
  font-weight: 500;
}

.mz-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.25rem;
  align-content: start;
  justify-items: start;
  padding: 1.75rem 2.25rem 2rem 2rem;
  margin: 0;
  list-style: none;
  background: var(--mz-white);
  border-radius: 0 var(--mz-mega-radius) var(--mz-mega-radius) 0;
}

/* Über uns — same shell as Branchen (2-col links) */
.mz-mega-grid--about {
  align-content: start;
}

/* Leistungen mega — Marktlogik: 3 columns with Überüberschriften */
.mz-mega--leistungen {
  --mz-mega-h: auto;
  width: var(--mz-mega-w);
  height: auto;
  min-height: 28rem;
  max-height: min(42rem, calc(100vh - var(--mz-header-h) - 1.5rem));
  grid-template-columns: minmax(17rem, 0.7fr) 2fr;
}

.mz-mega--leistungen .mz-mega-intro {
  padding: 2.5rem 2.15rem 2.35rem;
}

.mz-mega-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2.25rem;
  align-content: start;
  padding: 2.35rem 2.35rem 2.5rem 2rem;
  margin: 0;
  background: var(--mz-white);
  border-radius: 0 var(--mz-mega-radius) var(--mz-mega-radius) 0;
  overflow-y: auto;
}

.mz-mega-group-title {
  margin: 0 0 1.35rem;
  font-family: var(--mz-font);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
}

.mz-mega-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.mz-mega--leistungen .mz-mega-item a {
  grid-template-columns: 2.9rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  padding: 0.2rem 0;
}

.mz-mega--leistungen .mz-mega-icon {
  width: 2.9rem;
  height: 2.9rem;
  color: var(--mz-ink, #14211a);
}

.mz-mega--leistungen .mz-mega-icon img {
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
  /* dark ink; light fattening so thin SVGs stay readable */
  filter:
    brightness(0)
    drop-shadow(0.2px 0 0 #14211a)
    drop-shadow(-0.2px 0 0 #14211a)
    drop-shadow(0 0.2px 0 #14211a)
    drop-shadow(0 -0.2px 0 #14211a);
}

.mz-mega--leistungen .mz-mega-icon svg {
  width: 1.85rem;
  height: 1.85rem;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--mz-ink, #14211a);
}

.mz-mega--leistungen .mz-mega-item strong {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.3;
}

.mz-mega-grid--branchen {
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.75rem;
  padding: 1.75rem 2rem 1.75rem 1.75rem;
  align-content: start;
}

.mz-mega--branchen .mz-mega-item a {
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.85rem;
}

.mz-mega--branchen .mz-mega-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.mz-mega--branchen .mz-mega-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.mz-mega--branchen .mz-mega-item strong {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.mz-mega-item {
  width: 100%;
}

.mz-mega-item a {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  transition: transform 0.15s ease;
}

.mz-mega-item a:hover,
.mz-mega-item a:focus-visible {
  transform: translateX(2px);
}

.mz-mega-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--mz-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mz-icon);
  flex-shrink: 0;
  line-height: 0;
}

.mz-mega-icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mz-mega-item strong {
  display: block;
  font-family: var(--mz-font-heading);
  font-size: 1rem;
  color: var(--mz-ink);
  font-weight: 500;
  margin-bottom: 0.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mz-mega-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mz-mega-copy > span {
  display: block;
  font-family: var(--mz-font);
  font-size: 0.875rem;
  color: var(--mz-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* ========== TEMP: text-only mega test (revert by deleting this block) ========== */
.mz-mega-icon {
  display: none !important;
}

.mz-mega-item a,
.mz-mega--leistungen .mz-mega-item a,
.mz-mega--branchen .mz-mega-item a,
.mz-mega--about .mz-mega-item a {
  display: block;
  grid-template-columns: none;
  column-gap: 0;
  padding: 0;
  border-bottom: 0;
  transform: none;
}

.mz-mega-item a:hover,
.mz-mega-item a:focus-visible {
  transform: none;
}

.mz-mega-item a:hover strong,
.mz-mega-item a:focus-visible strong {
  color: var(--mz-green);
}

.mz-mega-item strong {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0;
}

.mz-mega-copy > span {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #7a847e;
}

.mz-mega-groups {
  gap: 2.25rem 3rem;
  padding: 1.85rem 2.35rem 1.75rem 2rem;
  min-height: 0;
}

.mz-mega--leistungen {
  min-height: 0;
}

.mz-mega-group-title {
  margin: 0 0 1.5rem;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Generous link rhythm; panels hug content (no dead bottom) */
.mz-mega-group-list {
  gap: 1.85rem;
}

.mz-mega-grid--branchen,
.mz-mega-grid--about {
  grid-template-columns: 1fr 1fr;
  gap: 1.85rem 2.25rem;
  padding: 1.85rem 1.85rem 1.75rem 1.65rem;
}

.mz-mega-grid {
  padding-bottom: 1.75rem;
}
/* ========== /TEMP text-only mega ========== */

/* ========== FOOTER (Figma) ========== */
#footer {
  margin-top: auto;
  border-top: 0;
  background: var(--mz-footer-bg);
  color: rgba(255, 255, 255, 0.88);
}

#footer .inside {
  padding: 0;
}

.mz-footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
}

.mz-footer-main {
  padding: 3.5rem 0 2.5rem;
}

.mz-footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

.mz-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 18rem;
  margin-bottom: 1.15rem;
  text-decoration: none;
}

.mz-footer-claim {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--mz-green);
  flex-shrink: 0;
}

.mz-footer-logo img {
  width: 100%;
  max-width: 13.5rem;
  height: auto;
  display: block;
}

.mz-footer-brand p {
  margin: 0;
  max-width: 19rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.mz-footer-col h3,
.mz-footer h3 {
  margin: 0 0 1rem;
  font-family: var(--mz-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mz-white);
  letter-spacing: 0.01em;
}

.mz-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.mz-footer-list a,
.mz-footer-list li {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.mz-footer-list a:hover,
.mz-footer-list a:focus-visible {
  color: var(--mz-white);
}

.mz-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.58);
}

.mz-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.mz-footer-legal a {
  color: rgba(255, 255, 255, 0.58);
}

.mz-footer-legal a:hover,
.mz-footer-legal a:focus-visible {
  color: var(--mz-white);
}

/* main page shell */
#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Full-bleed shell: section backgrounds reach the viewport edges.
   Content width/padding lives only on .mz-container / #main > .inside. */
#container {
  width: 100%;
  max-width: none;
  margin: 0;
}

#main {
  flex: 1;
  padding: 0;
}

#main > .inside {
  width: min(100% - (var(--mz-gutter) * 2), var(--mz-container));
  margin-inline: auto;
  padding: 3rem 0;
}

/* Impressum / Datenschutz — same content width as other pages */
.mz-legal.mod_article {
  margin: 0;
  padding: 0;
}

.mz-legal .content-text > h1,
.mz-legal h1 {
  margin: 0 0 1.75rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mz-ink);
}

.mz-legal h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--mz-font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--mz-green-forest);
}

.mz-legal h3 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--mz-font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--mz-ink);
}

.mz-legal p,
.mz-legal li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mz-ink);
}

.mz-legal p {
  margin: 0 0 1rem;
}

.mz-legal p > strong:first-child {
  color: var(--mz-green-forest);
  font-weight: 500;
}

.mz-legal ul,
.mz-legal ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.mz-legal li + li {
  margin-top: 0.4rem;
}

.mz-legal a {
  color: var(--mz-green-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mz-legal a:hover,
.mz-legal a:focus-visible {
  color: var(--mz-green);
}

.mz-legal em {
  font-style: italic;
  color: var(--mz-muted);
}

/* ========== KONTAKT ========== */
.mz-contact {
  background: var(--mz-white);
}

.mz-contact__map {
  width: 100%;
  height: min(52vh, 28rem);
  min-height: 16rem;
  background: var(--mz-section-muted);
  z-index: 0;
}

.mz-contact__map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.mz-contact__body {
  padding: 3.5rem 0 4.5rem;
}

.mz-contact__head {
  margin-bottom: 2.25rem;
}

.mz-contact__title {
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mz-ink);
}

.mz-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.mz-contact__offices p {
  margin: 0 0 1.35rem;
  line-height: 1.6;
}

.mz-contact__offices p:last-child {
  margin-bottom: 0;
}

.mz-contact__office-name {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mz-font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--mz-ink);
}

.mz-contact__offices strong {
  font-weight: 500;
  color: var(--mz-ink);
}

.mz-contact__offices a {
  color: var(--mz-green-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mz-contact__offices a:hover,
.mz-contact__offices a:focus-visible {
  color: var(--mz-green);
}

.mz-contact__form .formbody,
.mz-contact__form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mz-contact__form .widget {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.mz-contact__form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mz-ink);
}

.mz-contact__form .mandatory > .mandatory,
.mz-contact__form span.mandatory {
  color: var(--mz-green);
}

.mz-contact__form .invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mz-contact__form input.text,
.mz-contact__form input.email,
.mz-contact__form input.captcha,
.mz-contact__form textarea.textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5ddd8;
  border-radius: 0.35rem;
  background: var(--mz-white);
  font: inherit;
  color: var(--mz-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mz-contact__form input.text:focus,
.mz-contact__form input.email:focus,
.mz-contact__form textarea.textarea:focus {
  outline: none;
  border-color: var(--mz-green);
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.15);
}

.mz-contact__form textarea.textarea {
  min-height: 8rem;
  resize: vertical;
}

.mz-contact__form .submit_container {
  margin-top: 0.35rem;
}

.mz-contact__form button.submit,
.mz-contact__form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--mz-green);
  color: var(--mz-white);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mz-contact__form button.submit:hover,
.mz-contact__form button.submit:focus-visible {
  background: var(--mz-green-dark);
  outline: none;
}

/* ========== VERMIETUNG ========== */
.mz-vermietung__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.mz-vermietung__lead,
.mz-vermietung__details {
  font-size: 1rem;
  line-height: 1.65;
}

.mz-vermietung__lead p,
.mz-vermietung__details p {
  margin: 0 0 1rem;
}

.mz-vermietung__details ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.mz-vermietung__details li + li {
  margin-top: 0.35rem;
}

.mz-vermietung__cta {
  margin: 1.75rem 0 0;
}

.mz-vermietung__cta-line {
  margin: 0 0 0.85rem;
}

.mz-vermietung__cta-line strong {
  font-family: var(--mz-font-heading);
  font-weight: 500;
  color: var(--mz-ink);
}

.mz-vermietung__phone-btn {
  gap: 0.55rem;
}

.mz-vermietung__phone-icon {
  display: inline-flex;
  line-height: 0;
}

.mz-vermietung__phone-icon svg {
  display: block;
}

.mz-vermietung__portals-label {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mz-ink);
}

.mz-vermietung__portal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.mz-vermietung__portal {
  padding: 1.15rem 1.25rem;
  background: var(--mz-white);
  border: 1px solid #e2e8e4;
}

.mz-vermietung__portal-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
}

.mz-vermietung__portal-name {
  margin: 0 0 0.45rem;
  font-family: var(--mz-font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--mz-green-forest);
}

.mz-vermietung__portal-text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--mz-muted);
}

.mz-vermietung__portal-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mz-green-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mz-vermietung__portal-link:hover,
.mz-vermietung__portal-link:focus-visible {
  color: var(--mz-green);
}

/* ========== KARRIERE — accordion-style links + job detail bands ========== */
.mz-karriere__head {
  max-width: 36rem;
}

/* Beat .mz-legal type on this article so the head matches other hub pages */
.mz-karriere .mz-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--mz-icon);
}

.mz-karriere .mz-kicker--green {
  color: var(--mz-green-soft);
}

.mz-karriere .mz-leistung-hub__title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--mz-green-forest);
}

.mz-karriere .mz-leistung-hub__intro {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3a4740;
}

.mz-karriere__list,
.mz-legal .mz-karriere__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mz-karriere__row,
.mz-legal a.mz-karriere__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-inline: -0.85rem;
  padding: 1.05rem 0.85rem;
  border-bottom: 1px solid rgba(37, 92, 68, 0.14);
  color: inherit;
  text-decoration: none;
}

.mz-karriere__list > li:first-child .mz-karriere__row {
  border-top: 1px solid rgba(37, 92, 68, 0.14);
}

.mz-karriere__list > li:first-child .mz-karriere__row:hover,
.mz-karriere__list > li:first-child .mz-karriere__row:focus-visible,
.mz-legal .mz-karriere__list > li:first-child a.mz-karriere__row:hover,
.mz-legal .mz-karriere__list > li:first-child a.mz-karriere__row:focus-visible {
  border-top-color: transparent;
}

.mz-karriere__row:hover,
.mz-karriere__row:focus-visible,
.mz-legal a.mz-karriere__row:hover,
.mz-legal a.mz-karriere__row:focus-visible {
  background: var(--mz-white);
  border-color: transparent;
  color: inherit;
  text-decoration: none;
}

.mz-karriere__list > li:has(+ li .mz-karriere__row:hover) .mz-karriere__row,
.mz-karriere__list > li:has(+ li .mz-karriere__row:focus-visible) .mz-karriere__row {
  border-bottom-color: transparent;
}

.mz-karriere__row-main {
  min-width: 0;
}

.mz-karriere__row-cat {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
}

.mz-karriere__row-title {
  display: block;
  font-family: var(--mz-font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--mz-green-forest);
}

.mz-karriere__row-icon {
  flex: 0 0 auto;
  color: var(--mz-green);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mz-karriere__row:hover .mz-karriere__row-icon,
.mz-karriere__row:focus-visible .mz-karriere__row-icon {
  transform: translateX(0.2rem);
}

/* Job detail — leistung-detail composition, job-specific tweaks */
.mz-job-detail {
  padding-top: 0;
  padding-bottom: 0;
}

.mz-job-detail__hero-band {
  display: grid;
  grid-template-columns: minmax(0, var(--mz-leistung-hero-image, 3fr)) minmax(0, var(--mz-leistung-hero-text, 5fr));
  width: 100%;
  align-items: stretch;
  background: var(--mz-mint);
}

.mz-job-detail__media {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  margin: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  line-height: 0;
  background: #1a2a22;
}

.mz-job-detail__corner {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--mz-mint);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.mz-job-detail__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.mz-job-detail__intro-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
  background: var(--mz-mint);
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 6vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem) clamp(2.75rem, 7vw, 7.5rem);
  min-width: 0;
  box-sizing: border-box;
}

.mz-job-detail__intro {
  min-width: 0;
  width: 100%;
}

.mz-job-detail__back,
.mz-branche-detail__back {
  margin: 0 0 1.15rem;
}

.mz-job-detail__back a,
.mz-branche-detail__back a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mz-green);
  text-decoration: none;
}

.mz-job-detail__back a:hover,
.mz-job-detail__back a:focus-visible,
.mz-branche-detail__back a:hover,
.mz-branche-detail__back a:focus-visible {
  text-decoration: underline;
}

.mz-branche-detail:not(.mz-leistung-detail--hero) {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  /* More air before Passende Referenzen; body is a continuation, not a new band */
  padding-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

/* Branchen body = further paragraphs (no h2) — keep paragraph rhythm, not section gap */
.mz-branche-detail .mz-leistung-detail__body {
  margin-top: 1rem;
}

.mz-branche-detail .mz-leistung-detail__body p {
  margin: 0 0 1rem;
}

.mz-branche-detail .mz-leistung-detail__body p:last-child {
  margin-bottom: 0;
}

.mz-job-detail__title {
  margin: 0.35rem 0 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--mz-green-forest);
}

.mz-job-detail__teaser {
  margin: 1.15rem 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3a4740;
}

.mz-job-detail__teaser p {
  margin: 0;
}

.mz-job-detail__cta {
  margin: 1.5rem 0 0;
}

.mz-job-detail__cta--footer {
  margin-top: 2rem;
}

.mz-job-detail__band {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: var(--mz-white);
}

.mz-job-detail__band--mint {
  background: var(--mz-mint);
}

.mz-job-detail__copy {
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #3a4740;
}

.mz-job-detail__band-title {
  margin: 0 0 0.9rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mz-green-forest);
}

.mz-job-detail__copy p:not(.mz-job-detail__cta) {
  margin: 0 0 0.9rem;
}

.mz-job-detail__copy p:not(.mz-job-detail__cta):last-child {
  margin-bottom: 0;
}

.mz-job-detail__copy ul {
  margin: 0;
  padding-left: 1.2rem;
}

.mz-job-detail__copy li + li {
  margin-top: 0.45rem;
}

.mz-job-detail__copy img {
  margin: 0.35rem 0 0.5rem;
  width: auto;
  max-width: 14rem;
  height: auto;
}

@media (max-width: 900px) {
  .mz-contact__grid,
  .mz-vermietung__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mz-contact__map {
    height: 16rem;
  }

  .mz-job-detail__hero-band {
    grid-template-columns: 1fr;
  }

  .mz-job-detail__media {
    min-height: 16rem;
  }

  .mz-job-detail__intro-panel {
    padding: 2.25rem var(--mz-gutter) 2.75rem;
  }

  .mz-mega-grid--about {
    grid-template-columns: 1fr;
  }
}

/* mobile */
.mz-nav-toggle {
  display: none;
  border: 1.5px solid var(--mz-white);
  background: transparent;
  color: var(--mz-white);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
  position: relative;
  z-index: 11;
}

@media (max-width: 960px) {
  .mz-nav-toggle {
    display: inline-flex;
  }

  .mz-nav-wrap {
    position: static;
  }

  .mz-nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--mz-green);
    padding: 1rem 1rem 1.25rem;
    z-index: 30;
  }

  .mz-nav-panel.is-open {
    display: block;
  }

  .mz-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .mz-mega,
  .mz-mega--branchen,
  .mz-mega--about {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    margin-top: 0.75rem;
    min-height: 0;
    display: none;
    border-radius: 0.5rem;
  }

  .mz-mega::after {
    display: none;
  }

  .mz-nav > li.submenu.is-open > .mz-mega {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mz-mega-grid,
  .mz-mega-grid--branchen {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .mz-mega-intro {
    padding: 1.5rem;
    border-radius: var(--mz-mega-radius) var(--mz-mega-radius) 0 0;
  }

  .mz-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #header::before {
    width: 100%;
    transform: none;
  }

  #header .element {
    width: 4rem;
    height: 4rem;
  }

  .mz-logo {
    filter: brightness(0) invert(1);
    max-width: 11rem;
  }

  .mz-footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ——— Leistungen hub + detail ——— */
.mz-leistung-hub {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.mz-leistung-hub__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.mz-leistung-hub__title {
  margin: 0.35rem 0 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--mz-green-forest);
}

.mz-leistung-hub__intro {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3a4740;
}

/* Hub overview uses .mz-teaser-grid (Startseite teaser look). Compact = one teaser strip. */
.mz-leistung-hub--compact .mz-teaser-grid {
  grid-template-columns: minmax(0, 16rem);
  justify-content: start;
  max-width: 40rem;
}

/* Reference strip — exact pre-tiny-slider Kachel look; snap-slider via JS */
.mz-ref-marquee {
  --mz-ref-gap: clamp(1.15rem, 2.2vw, 1.75rem);
  --mz-ref-tile-w: clamp(15.5rem, 24vw, 19.5rem);
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.35rem 0 0.75rem;
}

.mz-ref-marquee__viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: none;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.mz-ref-marquee.is-dragging .mz-ref-marquee__viewport {
  cursor: grabbing;
}

.mz-ref-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--mz-ref-gap);
  padding-inline: var(--mz-gutter);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mz-ref-marquee.is-dragging .mz-ref-marquee__track {
  transition: none;
}

/* Few tiles — no overflow: center the row, no drag/mask */
.mz-ref-marquee.is-centered .mz-ref-marquee__viewport {
  cursor: default;
  mask-image: none;
  -webkit-mask-image: none;
}

.mz-ref-marquee.is-centered .mz-ref-marquee__track {
  width: 100%;
  justify-content: center;
  transform: none !important;
  will-change: auto;
  transition: none;
}

.mz-ref-marquee__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 0.25rem;
  min-height: 0.5rem;
}

.mz-ref-marquee__dots:empty {
  display: none;
}

.mz-ref-marquee__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 26, 0.22);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mz-ref-marquee__dot:hover,
.mz-ref-marquee__dot:focus-visible {
  background: rgba(20, 33, 26, 0.45);
}

.mz-ref-marquee__dot[aria-current="true"] {
  background: var(--mz-green-forest);
  transform: scale(1.15);
}

.mz-ref-marquee__dot:focus-visible {
  outline: 2px solid var(--mz-green-forest);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .mz-ref-marquee__track {
    flex-wrap: wrap;
    width: 100%;
    max-width: var(--mz-max, 72rem);
    margin-inline: auto;
    justify-content: center;
    transform: none !important;
    transition: none;
  }

  .mz-ref-marquee__dots {
    display: none;
  }
}

.mz-ref-tile {
  position: relative;
  display: block;
  flex: 0 0 var(--mz-ref-tile-w);
  width: var(--mz-ref-tile-w);
  padding-top: 0.55rem;
  padding-left: 0.55rem;
  text-decoration: none;
  color: inherit;
  cursor: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

.mz-ref-tile__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--mz-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.mz-ref-tile__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--mz-white);
  overflow: hidden;
}

.mz-ref-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mz-white);
  overflow: hidden;
  box-sizing: border-box;
}

.mz-ref-tile__media img {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  pointer-events: none;
}

.mz-ref-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid rgba(37, 92, 68, 0.08);
}

.mz-ref-tile__name {
  font-family: var(--mz-font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--mz-green-forest);
}

.mz-ref-tile__teaser {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c6560;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mz-ref-tile:hover .mz-ref-tile__corner,
.mz-ref-tile:focus-visible .mz-ref-tile__corner {
  background: var(--mz-green-soft);
}

.mz-ref-tile:focus-visible {
  outline: none;
}

.mz-ref-tile:focus-visible .mz-ref-tile__card {
  outline: 2px solid var(--mz-green);
  outline-offset: 2px;
}

/* ——— Leistung detail intro (canonical — see .cursor/rules/leistung-detail-intro.mdc) ——— */
.mz-leistung-detail {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1rem, 2vw, 1.75rem);
}

/* Adjacent same-bg sections — avoid stacked 4.5rem gaps */
.mz-leistung-detail + .mz-leistungen-slider,
.mz-leistung-detail + .mz-leistungen-grid {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.mz-leistung-hub--refs {
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Refs + Team are separate Contao articles — tighten the stacked muted gap */
.mz-leistung-hub--refs + .mz-about-team,
.mod_article:has(.mz-leistung-hub--refs) + .mod_article:has(.mz-about-team) .mz-about-team {
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.mz-leistung-detail--hero {
  /* Split: image | text — change these fr values to tweak */
  --mz-leistung-hero-image: 3fr;
  --mz-leistung-hero-text: 5fr;
  padding-top: 0;
}

.mz-leistung-detail__hero-band {
  display: grid;
  grid-template-columns: minmax(0, var(--mz-leistung-hero-image)) minmax(0, var(--mz-leistung-hero-text));
  width: 100%;
  align-items: stretch;
  background: var(--mz-section-muted);
}

.mz-leistung-detail__media {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  margin: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  line-height: 0;
  background: #1a2a22;
}

.mz-leistung-detail__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mz-leistung-hero-focus, 50% 40%);
}

.mz-leistung-detail__intro-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
  background: var(--mz-section-muted);
  padding: clamp(4rem, 8vw, 7.5rem) clamp(3rem, 7vw, 7rem) clamp(4rem, 8vw, 6.5rem) clamp(3.25rem, 8.5vw, 9.25rem);
  min-width: 0;
  box-sizing: border-box;
}

.mz-leistung-detail__intro {
  min-width: 0;
  width: 100%;
}

.mz-leistung-detail__title {
  margin: 0.35rem 0 0;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--mz-green-forest);
}

.mz-leistung-detail__claim {
  margin: 1.15rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.45;
  color: #2f3b34;
}

.mz-leistung-detail__lead {
  margin: 1.15rem 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3a4740;
}

.mz-leistung-detail__lead p {
  margin: 0;
}

.mz-leistung-detail__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.mz-leistung-detail__topics li {
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--mz-green);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mz-white);
  line-height: 1.2;
}

.mz-leistung-detail__body {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  width: 100%;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #3a4740;
}

.mz-leistung-detail__body > .mz-kicker {
  margin: 0 0 0.65rem;
}

.mz-leistung-detail__body h2 {
  margin: 0 0 1.35rem;
  font-family: var(--mz-font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mz-ink);
}

.mz-leistung-detail__body h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--mz-font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--mz-green-forest);
}

.mz-leistung-detail__body p {
  margin: 0 0 0.9rem;
}

.mz-leistung-detail__body p:last-child {
  margin-bottom: 0;
}

.mz-leistung-hub--compact .mz-leistung-hub__head {
  margin-bottom: 1.5rem;
}

/* FAQ — same type language as about intro; no boxed cards */
.mz-faq__list {
  display: flex;
  flex-direction: column;
}

.mz-faq-item {
  border-bottom: 1px solid rgba(37, 92, 68, 0.14);
}

.mz-faq-item:first-child {
  border-top: 1px solid rgba(37, 92, 68, 0.14);
}

.mz-faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--mz-font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--mz-green-forest);
}

.mz-faq-item__q::-webkit-details-marker {
  display: none;
}

.mz-faq-item__icon {
  color: var(--mz-green);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mz-faq-item[open] .mz-faq-item__icon {
  transform: rotate(90deg);
}

.mz-faq-item__a {
  padding: 0 0 1.15rem;
}

/* Sibling nav (parked) — keep for later */
.mz-leistung-detail__shell {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.mz-leistung-nav {
  position: sticky;
  top: calc(var(--mz-header-h) + 1.25rem);
  align-self: start;
}

.mz-leistung-nav__label {
  margin: 0 0 0.85rem;
  font-family: var(--mz-font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
}

.mz-leistung-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(37, 92, 68, 0.14);
}

.mz-leistung-nav__link {
  display: block;
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #4a554e;
  text-decoration: none;
}

.mz-leistung-nav__link:hover,
.mz-leistung-nav__link:focus-visible {
  color: var(--mz-green-forest);
  outline: none;
}

.mz-leistung-nav__link.is-hub {
  font-weight: 500;
  color: var(--mz-green-forest);
}

.mz-leistung-nav__link.is-active {
  border-left-color: var(--mz-green);
  color: var(--mz-green-forest);
  font-weight: 500;
}

@media (max-width: 960px) {
  .mz-leistung-hub--compact .mz-teaser-grid {
    grid-template-columns: minmax(0, 16rem);
  }

  .mz-leistung-detail__hero-band {
    grid-template-columns: 1fr;
  }

  .mz-leistung-detail__media {
    grid-column: 1;
  }

  .mz-leistung-detail__intro-panel {
    grid-column: 1;
    padding: 2.75rem var(--mz-gutter) 1rem;
  }

  .mz-leistung-detail__shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mz-leistung-nav {
    position: static;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(37, 92, 68, 0.1);
  }

  .mz-leistung-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    border-left: 0;
  }

  .mz-leistung-nav__link {
    padding: 0.2rem 0;
    margin-left: 0;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .mz-leistung-nav__link.is-active {
    border-bottom-color: var(--mz-green);
  }
}

@media (max-width: 640px) {
  .mz-leistung-hub--compact .mz-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== FLOAT RAIL (left) + SCROLL TOP (right) ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mz-float-rail {
  --mz-float-size: calc(2.75rem * 1.05);
  --mz-float-gap: 0.45rem;
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--mz-float-gap);
  transform: translateY(-50%);
  pointer-events: none;
}

.mz-float-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--mz-float-gap);
  pointer-events: auto;
}

.mz-float-rail__list--quick {
  margin-top: 0.15rem;
}

.mz-float-rail__text {
  display: inline-flex;
  align-items: center;
  min-height: var(--mz-float-size);
  padding: 0.35rem 0.65rem;
  background: var(--mz-green);
  color: var(--mz-white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: background 0.2s ease;
}

.mz-float-rail__text:hover,
.mz-float-rail__text:focus-visible {
  background: var(--mz-green-dark);
  outline: none;
}

.mz-float-rail__contact {
  position: relative;
  display: flex;
  align-items: center;
  pointer-events: auto;
  /* Keep a hover hit-area so the pointer can travel into the tray */
  padding-right: 0.35rem;
  margin-right: -0.35rem;
}

.mz-float-rail__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mz-float-size);
  height: var(--mz-float-size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--mz-green);
  color: var(--mz-white);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.mz-float-rail__btn:hover,
.mz-float-rail__btn:focus-visible {
  background: var(--mz-green-dark);
  transform: translateY(-1px);
  outline: none;
}

.mz-float-rail__btn:focus-visible {
  box-shadow:
    0 0 0 2px var(--mz-white),
    0 0 0 4px var(--mz-green);
}

.mz-float-rail__icon {
  display: flex;
  line-height: 0;
}

.mz-float-rail__icon svg {
  display: block;
  width: calc(18px * 1.1 * 1.1);
  height: calc(18px * 1.1 * 1.1);
}

/* Contact tray — flush to toggle (no dead gap); JS hover delay keeps it open while moving */
.mz-float-rail__panel {
  position: absolute;
  left: 100%;
  top: 0;
  display: flex;
  gap: var(--mz-float-gap);
  padding-left: var(--mz-float-gap);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-0.35rem);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s linear 0.18s;
}

.mz-float-rail__panel::before {
  content: "";
  position: absolute;
  right: 100%;
  top: -0.35rem;
  bottom: -0.35rem;
  width: calc(var(--mz-float-gap) + 0.5rem);
}

.mz-float-rail__contact.is-open .mz-float-rail__panel,
.mz-float-rail__contact:focus-within .mz-float-rail__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.mz-float-rail__contact.is-open .mz-float-rail__btn--toggle,
.mz-float-rail__contact:focus-within .mz-float-rail__btn--toggle {
  background: var(--mz-green-dark);
}

.mz-scroll-top {
  position: fixed;
  right: 62px;
  bottom: 62px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(2.75rem * 1.05);
  height: calc(2.75rem * 1.05);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--mz-green);
  color: var(--mz-white);
  cursor: pointer;
  box-shadow: none;
  opacity: 0;
  transform: translateY(0.6rem);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.2s ease;
}

.mz-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mz-scroll-top:hover,
.mz-scroll-top:focus-visible {
  background: var(--mz-green-dark);
  outline: none;
}

.mz-scroll-top:focus-visible {
  box-shadow:
    0 0 0 2px var(--mz-white),
    0 0 0 4px var(--mz-green);
}

.mz-scroll-top svg {
  display: block;
  width: calc(22px * 1.1 * 1.1);
  height: calc(22px * 1.1 * 1.1);
}

@media (max-width: 960px) {
  .mz-float-rail {
    display: none;
  }

  .mz-scroll-top {
    right: 1.25rem;
    bottom: 1.25rem;
    width: calc(2.5rem * 1.05);
    height: calc(2.5rem * 1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mz-float-rail__btn,
  .mz-float-rail__panel,
  .mz-scroll-top {
    transition: none;
  }
}

/* ——— Referenzen overview (sidebar filters + grid) ——— */
/* Full-bleed muted page: no white frame from #main > .inside */
#wrapper:has(.mz-referenzen),
#main:has(.mz-referenzen) {
  background: var(--mz-section-muted);
}

#main > .inside:has(.mz-referenzen) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mz-referenzen {
  padding-top: clamp(2.5rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  background: var(--mz-section-muted);
}

.mz-referenzen__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.mz-referenzen__intro {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5c6560;
}

.mz-referenzen__layout {
  display: grid;
  grid-template-columns: minmax(12.5rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.mz-referenzen__sidebar {
  position: sticky;
  top: calc(var(--mz-header-h, 4.5rem) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--mz-white);
}

.mz-referenzen__filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mz-referenzen__filter-label {
  margin: 0;
  font-family: var(--mz-font);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mz-green-soft);
}

.mz-referenzen__search {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(37, 92, 68, 0.22);
  border-radius: 0.55rem;
  background: var(--mz-white);
  font-family: var(--mz-font);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--mz-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mz-referenzen__search::placeholder {
  color: #8a938d;
  font-weight: 400;
}

.mz-referenzen__search:hover {
  border-color: var(--mz-green-soft);
}

.mz-referenzen__search:focus {
  border-color: var(--mz-green-forest);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 152, 69, 0.18);
}

.mz-referenzen__check--solo {
  align-items: center;
}

.mz-referenzen__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mz-referenzen__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--mz-font);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mz-ink);
  cursor: pointer;
}

.mz-referenzen__check input {
  appearance: none;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  border: 1.5px solid rgba(37, 92, 68, 0.35);
  border-radius: 0.2rem;
  background: var(--mz-white);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mz-referenzen__check input:checked {
  border-color: var(--mz-green-forest);
  background: var(--mz-green-forest);
  box-shadow: inset 0 0 0 2px var(--mz-white);
}

.mz-referenzen__check input:focus-visible {
  outline: 2px solid var(--mz-green);
  outline-offset: 2px;
}

.mz-referenzen__check.is-dimmed {
  opacity: 0.4;
}

.mz-referenzen__combo {
  position: relative;
  width: 100%;
}

.mz-referenzen__combo-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(37, 92, 68, 0.22);
  border-radius: 0.55rem;
  background: var(--mz-white);
  font-family: var(--mz-font);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--mz-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mz-referenzen__combo-trigger:hover {
  border-color: var(--mz-green-soft);
}

.mz-referenzen__combo.is-open .mz-referenzen__combo-trigger,
.mz-referenzen__combo-trigger:focus-visible {
  border-color: var(--mz-green-forest);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 152, 69, 0.18);
}

.mz-referenzen__combo-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mz-referenzen__combo-chevron {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23255C44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.18s ease;
}

.mz-referenzen__combo.is-open .mz-referenzen__combo-chevron {
  transform: rotate(180deg);
}

.mz-referenzen__combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: min(18rem, 55vh);
  overflow-y: auto;
  border: 1px solid rgba(37, 92, 68, 0.16);
  border-radius: 0.65rem;
  background: var(--mz-white);
  box-shadow: 0 10px 28px rgba(20, 33, 26, 0.12);
}

.mz-referenzen__combo-list[hidden] {
  display: none;
}

.mz-referenzen__combo-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  font-family: var(--mz-font);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mz-ink);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.mz-referenzen__combo-option:hover,
.mz-referenzen__combo-option.is-active {
  background: rgba(37, 92, 68, 0.08);
}

.mz-referenzen__combo-option.is-selected {
  background: var(--mz-green-forest);
  color: var(--mz-white);
}

.mz-referenzen__combo-option.is-selected:hover,
.mz-referenzen__combo-option.is-selected.is-active {
  background: var(--mz-green-forest);
  color: var(--mz-white);
}

.mz-referenzen__combo-option.is-dimmed {
  opacity: 0.38;
  pointer-events: none;
}

.mz-referenzen__combo-option.is-dimmed.is-selected {
  opacity: 1;
  pointer-events: auto;
}

.mz-referenzen__years {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mz-referenzen__years-readout {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--mz-font-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--mz-ink);
}

.mz-referenzen__years-readout [aria-hidden="true"] {
  color: #8a938d;
  font-weight: 400;
}

.mz-referenzen__years-slider {
  position: relative;
  height: 1.75rem;
  touch-action: none;
}

.mz-referenzen__years-track {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(37, 92, 68, 0.18);
}

.mz-referenzen__years-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: var(--mz-green-forest);
}

.mz-referenzen__years-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.mz-referenzen__years-input--from {
  z-index: 2;
}

.mz-referenzen__years-input--to {
  z-index: 3;
}

.mz-referenzen__years-input:focus {
  outline: none;
}

.mz-referenzen__years-input::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
  border: 0;
}

.mz-referenzen__years-input::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: calc((3px - 1.15rem) / 2);
  border: 2px solid var(--mz-green-forest);
  border-radius: 50%;
  background: var(--mz-white);
  box-shadow: 0 1px 3px rgba(20, 33, 26, 0.18);
  cursor: grab;
}

.mz-referenzen__years-input::-moz-range-track {
  height: 3px;
  background: transparent;
  border: 0;
}

.mz-referenzen__years-input::-moz-range-thumb {
  pointer-events: auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--mz-green-forest);
  border-radius: 50%;
  background: var(--mz-white);
  box-shadow: 0 1px 3px rgba(20, 33, 26, 0.18);
  cursor: grab;
}

.mz-referenzen__years-input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.28);
}

.mz-referenzen__years-input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(0, 152, 69, 0.28);
}

.mz-referenzen__reset {
  appearance: none;
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mz-font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mz-green-forest);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.mz-referenzen__reset[hidden] {
  display: none;
}

.mz-referenzen__reset:hover,
.mz-referenzen__reset:focus-visible {
  color: var(--mz-ink);
}

.mz-referenzen__main {
  min-width: 0;
}

.mz-referenzen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
}

@media (min-width: 641px) {
  .mz-referenzen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sidebar layout (≥901px): keep 3 tiles in a row on laptop / Air */
@media (min-width: 901px) {
  .mz-referenzen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mz-referenzen__item {
  min-width: 0;
}

.mz-referenzen__item[hidden] {
  display: none;
}

.mz-referenzen__grid .mz-ref-tile {
  flex: none;
  width: 100%;
  height: 100%;
}

.mz-referenzen__empty {
  margin: 2rem 0 0;
  padding: 1.5rem 1.25rem;
  background: var(--mz-section-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c6560;
}

.mz-referenzen__empty[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .mz-referenzen__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mz-referenzen__sidebar {
    position: static;
  }
}
