/* =========================================================
   CSS VARIABLES & GLOBAL BASE
   ========================================================= */
:root {
  --richter-red: rgb(194, 0, 22);
  --richter-red-dark: #960011;
  --richter-yellow: rgb(246, 212, 4);
  --richter-bg: #e5e5e5;

  --cassiopeia-color-primary: var(--richter-red);
  --cassiopeia-color-link: var(--richter-red);
  --cassiopeia-color-hover: var(--richter-red-dark);
}

/* Prevents horizontal scrolling and enables full-height sticky footer */
html,
body {
  overflow-x: clip;
  background-color: var(--richter-bg);
}

body.site {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

body.site > .site-grid {
  flex: 1 0 auto;
  width: 100%;
}

/* =========================================================
   HEADER & MAIN NAVIGATION MENU
   ========================================================= */
.container-header {
  background-color: #ffffff;
  background-image: url('/images/richter/header_bg_mirrored.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 1.25rem 1.5rem 0 !important;
  margin: 0 !important;
}

.container-header .navbar-brand img {
  max-height: 75px;
  width: auto;
}

.container-header .container-nav {
  margin: 2rem -1.5rem 0 !important;
  width: calc(100% + 3rem);
  padding: 0 1.5rem;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 4px solid var(--richter-red);
  box-shadow: none !important;
  position: relative;
  z-index: 40;
}

.container-header .navbar,
.container-header .navbar-collapse,
.container-header .mod-menu {
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.container-header .navbar-toggler {
  color: var(--richter-red);
  border: 2px solid var(--richter-red);
  border-radius: 0;
  padding: 0.3rem 0.6rem;
  margin: 0.35rem 0;
}

.container-header .metismenu.mod-menu .metismenu-item {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  transition: background-color 0.2s ease;
}

/* Standardizes typography, bold weight, and spacing across links and menu headings */
.container-header .metismenu.mod-menu .metismenu-item > a,
.container-header .metismenu.mod-menu .metismenu-item > button,
.container-header .metismenu.mod-menu .metismenu-item > .mm-toggler,
.container-header .metismenu.mod-menu .metismenu-item > .mod-menu__heading,
.container-header .metismenu.mod-menu .metismenu-item > .nav-header {
  color: var(--richter-red) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em;
  background: transparent !important;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Brings the red dropdown arrow closer to the menu item label */
.container-header .metismenu.mod-menu .metismenu-item > button,
.container-header .metismenu.mod-menu .metismenu-item > .mm-toggler,
.container-header .metismenu.mod-menu .metismenu-item > .mod-menu__heading {
  gap: 0.25rem !important;
}

/* Removes default bottom underline (::before) while preserving the dropdown arrow (::after) */
.container-header .metismenu.mod-menu .metismenu-item > a::before,
.container-header .metismenu.mod-menu .metismenu-item > a::after,
.container-header .metismenu.mod-menu .metismenu-item > button::before,
.container-header .metismenu.mod-menu .metismenu-item > .mm-toggler::before,
.container-header .metismenu.mod-menu .metismenu-item > .mod-menu__heading::before,
.container-header .metismenu.mod-menu .metismenu-item > .nav-header::before {
  display: none !important;
  content: none !important;
}

.container-header .metismenu.mod-menu .mm-toggler::after {
  display: inline-block !important;
  content: "" !important;
  color: var(--richter-red) !important;
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
}

/* Removes focus outlines and applies a uniform translucent yellow active/hover highlight */
.container-header .metismenu.mod-menu a:focus,
.container-header .metismenu.mod-menu a:focus-visible,
.container-header .metismenu.mod-menu a:active,
.container-header .metismenu.mod-menu button:focus,
.container-header .metismenu.mod-menu button:focus-visible,
.container-header .metismenu.mod-menu button:active,
.container-header .metismenu.mod-menu .mm-toggler:focus,
.container-header .metismenu.mod-menu .mm-toggler:focus-visible,
.container-header .metismenu.mod-menu .mm-toggler:active,
.container-header .metismenu.mod-menu [aria-expanded="true"] {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

.container-header .metismenu.mod-menu > .metismenu-item.active,
.container-header .metismenu.mod-menu > .metismenu-item.current,
.container-header .metismenu.mod-menu > .metismenu-item.mm-active,
.container-header .metismenu.mod-menu > .metismenu-item:hover,
.container-header .metismenu.mod-menu > .metismenu-item:focus-within,
.container-header .metismenu.mod-menu > .metismenu-item:active {
  background-color: rgba(246, 212, 4, 0.35) !important;
}

.container-header .metismenu.mod-menu > .metismenu-item.active > a,
.container-header .metismenu.mod-menu > .metismenu-item > a:hover,
.container-header .metismenu.mod-menu > .metismenu-item > a:focus,
.container-header .metismenu.mod-menu > .metismenu-item > a:active,
.container-header .metismenu.mod-menu > .metismenu-item > button:hover,
.container-header .metismenu.mod-menu > .metismenu-item > button:focus,
.container-header .metismenu.mod-menu > .metismenu-item > button:active,
.container-header .metismenu.mod-menu > .metismenu-item > .mm-toggler:hover,
.container-header .metismenu.mod-menu > .metismenu-item > .mm-toggler:focus,
.container-header .metismenu.mod-menu > .metismenu-item > .mm-toggler:active {
  background-color: transparent !important;
  color: var(--richter-red) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Dropdown submenu box (Leistungen, Technik, and Service) */
.container-header .metismenu.mod-menu ul.mm-collapse {
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-top: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  min-width: 240px;
  padding: 0 !important;
  margin-top: 0 !important;
  z-index: 100;
}

.container-header .metismenu.mod-menu > .metismenu-item > ul.mm-collapse > li:first-child,
.container-header .metismenu.mod-menu > .metismenu-item > ul.mm-collapse > li:first-child > a {
  margin-top: 0 !important;
}

.container-header .metismenu.mod-menu ul.mm-collapse .metismenu-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.container-header .metismenu.mod-menu ul.mm-collapse a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: var(--richter-red) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem !important;
  border-left: 4px solid transparent !important;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-left-color 0.2s ease !important;
}

.container-header .metismenu.mod-menu ul.mm-collapse li:last-child a {
  border-bottom: none;
}

.container-header .metismenu.mod-menu ul.mm-collapse a:hover,
.container-header .metismenu.mod-menu ul.mm-collapse a:focus,
.container-header .metismenu.mod-menu ul.mm-collapse a:active,
.container-header .metismenu.mod-menu ul.mm-collapse li.active > a {
  background-color: rgba(246, 212, 4, 0.28) !important;
  border-left: 4px solid var(--richter-yellow) !important;
  color: var(--richter-red) !important;
}

/* =========================================================
   ARTICLE CONTENT, TYPOGRAPHY, IMAGES & VIDEO
   ========================================================= */
.container-component main,
.com-content-article,
.com-content-article__body > figure:first-of-type,
.com-content-article__body > p:first-of-type {
  margin-top: 0 !important;
}

.com-content-article__body figure:first-of-type,
.com-content-article__body figure:first-of-type img,
.com-content-article__body > p:first-of-type img,
.com-content-article__body > img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.site .com-content-article__body img.richter-banner {
  width: 100% !important;
  max-width: 100% !important;
  height: 240px !important;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 0 1.25rem !important;
}

.com-content-article img,
.com-content-article iframe {
  max-width: 100%;
  height: auto;
}

.com-content-article iframe[src*="youtube"] {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  display: block;
}

.com-content-article h1,
.com-content-article h2 {
  color: var(--richter-red);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1.35rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 4px solid var(--richter-red);
}

.com-content-article__body h3 {
  color: #1a1a1a;
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.com-content-article__body h4 {
  color: #333333;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.com-content-article__body p,
.com-content-article__body li {
  line-height: 1.6;
}

.richter-video-box {
  max-width: 72%;
  margin: 2rem auto 1rem;
}

.richter-video-box video {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   ARTICLE PHOTO CAROUSEL (.richter-slider)
   ========================================================= */
.richter-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.richter-slider p {
  margin: 0 !important;
}

.richter-slider img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: contain;
  margin: 0 auto !important;
}

.richter-slider.is-loaded img {
  display: none;
}

.richter-slider.is-loaded img.active {
  display: block;
}

.richter-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(194, 0, 22, 0.85);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.richter-slider-btn:hover {
  background: var(--richter-red-dark);
}

.richter-slider-prev {
  left: 10px;
}

.richter-slider-next {
  right: 10px;
}

.richter-slider-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* =========================================================
   HOMEPAGE: UNSERE LEISTUNGEN & CTA SECTION
   ========================================================= */
.richter-leistungen {
  width: 100%;
  max-width: none;
  background: transparent;
  padding: 0;
  margin: 2.75rem 0 0;
  box-shadow: none;
  box-sizing: border-box;
}

.richter-leistungen__heading {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--richter-red);
  border-bottom: 4px solid var(--richter-red);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
}


.richter-leistungen__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}



/* Service cards with warm yellow tint and full red border */
.richter-leistung-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 345px;
  max-width: none;
  margin: 0;
  padding: 1.5rem 0 1.25rem;
  box-sizing: border-box;
  background-color: #fff8d6;
  border: 3px solid var(--richter-red);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.richter-leistung-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
}

@media (max-width: 991.98px) {
  .richter-leistungen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .richter-leistungen__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Desenhos ilustrados abertos no topo de cada card (sem círculo) */
.richter-leistung-card__icon {
  display: block;
  width: 110px;
  height: 84px;
  margin: 0 auto;
  font-size: 0;
  line-height: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


.richter-leistung-card__icon--baumpflege {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 84' fill='none'%3E%3Cpath d='M36 44C25 46 18 39 20 30c-1-8 6-14 14-13 3-7 15-7 19 0 8-1 15 5 13 13 3 8-4 16-15 14H36Z' fill='%2328a745' stroke='%231f2428' stroke-width='2.1' stroke-linejoin='round'/%3E%3Crect x='29' y='17' width='3' height='51' fill='%23c81e1e'/%3E%3Cpath d='M29 17v51M32 17v51' stroke='%231f2428' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M35 74c3-4 5-8 5-12V44l-9-6 2-3 7 5V25h4v6l5-4 2 3-7 5v6l11-6 2 3-11 7v17c0 4 2 8 5 12H35Z' fill='%23d97706' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='31' cy='39' r='2.6' fill='%23facc15' stroke='%231f2428' stroke-width='1.8'/%3E%3Cpath d='M31 74h24' stroke='%231f2428' stroke-width='2.1' stroke-linecap='round'/%3E%3Crect x='37' y='54' width='12' height='3' rx='1.5' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.7'/%3E%3Crect x='37' y='57' width='12' height='3' rx='1.5' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.7'/%3E%3Crect x='37' y='60' width='12' height='3' rx='1.5' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.7'/%3E%3Cellipse cx='34.5' cy='59.5' rx='3' ry='2.4' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.7'/%3E%3Crect x='62' y='55' width='3.5' height='8' rx='1.5' fill='%23facc15' stroke='%231f2428' stroke-width='1.7'/%3E%3Crect x='93.5' y='55' width='3.5' height='8' rx='1.5' fill='%23facc15' stroke='%231f2428' stroke-width='1.7'/%3E%3Cpath d='M67 52l-2 17c0 3.5 10 3.5 10 0l1-11-9-6Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M67.5 61l7 3' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M83 58l1 11c0 3.5 10 3.5 10 0l-2-17-9 6Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M91.5 61l-7 3' stroke='%23facc15' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M75 58l4.5-5 4.5 5' stroke='%231f2428' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='65' y='46' width='29' height='6' rx='1.5' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9'/%3E%3Crect x='70' y='46.5' width='5' height='5' rx='0.8' fill='%23facc15' stroke='%231f2428' stroke-width='1.5'/%3E%3Crect x='84' y='46.5' width='5' height='5' rx='0.8' fill='%23facc15' stroke='%231f2428' stroke-width='1.5'/%3E%3C/svg%3E");
}


.richter-leistung-card__icon--baumfaellung {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 84' fill='none'%3E%3Cpath d='M41 34c-5-2-6-10-1-14 0-6 7-10 13-7 5-5 14-3 16 4 6 1 8 9 4 14 1 6-5 11-11 9-4 3-11 2-14-2-3 1-6-1-7-4Z' fill='%2328a745' stroke='%231f2428' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M31 53l7-8-4-1 1-3 6 2 3-3V25h4v11l7-8 4 4-14 16 4 1-1 3-6-1-6 7-5-5Z' fill='%23d97706' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M32 15v17M36 20v12M47 54l10 2.5M50 50.5l9 2.5' stroke='%231f2428' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M67 63.5H46.5a2.5 2.5 0 0 0 0 5H67' fill='%23e5e7eb' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M48 63.5v-1.8M52 63.5v-1.8M56 63.5v-1.8M60 63.5v-1.8M64 63.5v-1.8M44 65h-1.8M44 67h-1.8M48 68.5v1.8M52 68.5v1.8M56 68.5v1.8M60 68.5v1.8M64 68.5v1.8' stroke='%231f2428' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M48 66h16' stroke='%231f2428' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M67 61l-2-8c0-1.2.8-2 2-2h1.5l1.5 10' fill='%23facc15' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M67 61c0-2 1.5-3.5 3.5-3.5h11c2.5 0 4.5 2 4.5 4.5v7.5c0 .8-.7 1.5-1.5 1.5H67V61Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M72.5 58v-6.5c0-1.1.9-2 2-2h1.5c1.1 0 2 .9 2 2V71' stroke='%231f2428' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M86 61h6.5c1.4 0 2.5 1.1 2.5 2.5v4c0 1.4-1.1 2.5-2.5 2.5H86' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M80.5 61.5l1.8 2.8 1.8-2.8' stroke='%23facc15' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.richter-leistung-card__icon--wurzelfraesen {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 84' fill='none'%3E%3Cpath d='M28 46c0 9-3 16-11 21 4 2 9 1 13-2 4 3 8 6 13 8 4-2 7-5 9-7 5 2 10 3 15 1-8-5-9-12-9-21H28Z' fill='%23d97706' stroke='%231f2428' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M33 54c0 4-1 7-3 10M42 56v11M50 54c0 4 1 6 3 9' stroke='%231f2428' stroke-width='1.8' stroke-linecap='round'/%3E%3Cellipse cx='43' cy='46' rx='15' ry='5.5' fill='%23fde68a' stroke='%231f2428' stroke-width='2.1'/%3E%3Cpath d='M51 46c0 1.6-3.8 2.8-8.5 2.8S34 47.6 34 46s3.8-2.8 8.5-2.8' stroke='%231f2428' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M53 36l1.5-7-3-2.5 5.5-1.5 2.5-2-1-3.5 5 1 4-.5 1-3.5 3.5 3.5 4 1.5 3-3 1.5 5 2.5 3 4-1-1.5 5 .5 4 4 1-4 3.5-1.5 4 3.5 2.5-5.5 1-3 3 1.5 4-5-2-4.5 1-.5 4-4-4-4-1-2.5 3.5-1.5-5.5-6-2.5V36Z' fill='%23e5e7eb' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M50 47.5h4.5' stroke='%231f2428' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M61 29a10.5 10.5 0 0 1 16 13M62 43a10.5 10.5 0 0 0 11.5 2' stroke='%231f2428' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='69' cy='36' r='5.8' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.8'/%3E%3Ccircle cx='69' cy='36' r='2.5' fill='%23facc15' stroke='%231f2428' stroke-width='1.5'/%3E%3C/svg%3E");
}


.richter-leistung-card__icon--kranarbeiten {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 84' fill='none'%3E%3Cpath d='M24 63v12M21 75h6M55 63v12M52 75h6' stroke='%231f2428' stroke-width='2.1' stroke-linecap='round'/%3E%3Crect x='23' y='60' width='33' height='4' rx='1' fill='%23e5e7eb' stroke='%231f2428' stroke-width='1.9'/%3E%3Ccircle cx='32' cy='69' r='5.5' fill='%231f2428'/%3E%3Ccircle cx='32' cy='69' r='2.2' fill='%23facc15'/%3E%3Ccircle cx='47' cy='69' r='5.5' fill='%231f2428'/%3E%3Ccircle cx='47' cy='69' r='2.2' fill='%23facc15'/%3E%3Crect x='34' y='57' width='11' height='3' fill='%231f2428'/%3E%3Cpath d='M23 57v-6c0-1 .8-1.8 1.8-1.8H37V57H23Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M37 46h8.5c1.2 0 2.2.8 2.5 2l1 9H37V46Z' fill='%23facc15' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M41 48.5h4.5l.6 4H41v-4Z' fill='%23ffffff' stroke='%231f2428' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M37 51l9-10' stroke='%231f2428' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M24 46.5 58 19l3.5 3.8L27.5 50.3 24 46.5Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M59 19.8 70 11l2.5 2.8-11 8.8-2.5-2.8Z' fill='%23facc15' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M70 10.5 72.5 8.5l4.5 4.8-2.5 2-4.5-4.8Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M73.5 14v19M75.8 13.5V33' stroke='%231f2428' stroke-width='1.8' stroke-linecap='round'/%3E%3Cellipse cx='74.6' cy='35.5' rx='2.4' ry='3.2' fill='%23facc15' stroke='%231f2428' stroke-width='1.8'/%3E%3Cpath d='M74.6 38.7v2.3c0 1.4-1.5 2.2-1.5 3.3 0 .9.8 1.5 1.7 1.5' stroke='%231f2428' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M79 38c-3-2-3-7 1-9 0-5 5-8 9-6 4-3 10-1 11 4 4 1 5 7 2 10 0 4-4 7-8 6-3 2-8 1-10-2-2 0-4-1-5-3Z' fill='%2328a745' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M62 67 79 40l4.2 2.7-17 27L62 67Z' fill='%23d97706' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M68.5 61.5 74.5 52' stroke='%231f2428' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M74.6 44 73.2 49.2M74.6 44l3.8 6.8M72.6 48.8l5.8 3.6' stroke='%23c81e1e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}



.richter-leistung-card__icon--haeckseln {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 84' fill='none'%3E%3Cpath d='M20 41 31 32v22h-9l-2-13Z' fill='%23facc15' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M26 39 17 46v13h9' stroke='%231f2428' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M22 54h17v8H26l-4-8Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M52 46 63 36l5 5-12 11-4-6Z' fill='%23d97706' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cellipse cx='65.5' cy='38.5' rx='3.4' ry='2' transform='rotate(45 65.5 38.5)' fill='%23fde68a' stroke='%231f2428' stroke-width='1.7'/%3E%3Crect x='31' y='40' width='23' height='19' rx='1.5' fill='%23c81e1e' stroke='%231f2428' stroke-width='2'/%3E%3Cpath d='M44 36c0-15 8-21 20-20l-1 6c-8-1-12 3-12 14h-7Z' fill='%23facc15' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='42.5' y='35.5' width='10' height='4.5' rx='1' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9'/%3E%3Cpath d='M64 14.5 72 17.5l-2 6-8-3 2-6Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M37 59a11 11 0 0 1 22 0H37Z' fill='%23facc15' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='41' y='46' width='5' height='6' rx='1' fill='%23facc15' stroke='%231f2428' stroke-width='1.7'/%3E%3Ccircle cx='48' cy='63' r='8.5' fill='%231f2428'/%3E%3Ccircle cx='48' cy='63' r='4.2' fill='%23e5e7eb' stroke='%231f2428' stroke-width='1.5'/%3E%3Ccircle cx='48' cy='63' r='1.5' fill='%23c81e1e'/%3E%3Ccircle cx='74' cy='22' r='1.5' fill='%23d97706'/%3E%3Ccircle cx='78' cy='25' r='1.6' fill='%23facc15'/%3E%3Ccircle cx='75' cy='29' r='1.4' fill='%23c81e1e'/%3E%3Ccircle cx='81' cy='31' r='1.6' fill='%23d97706'/%3E%3Ccircle cx='77' cy='35' r='1.5' fill='%23facc15'/%3E%3Ccircle cx='82' cy='38' r='1.5' fill='%23d97706'/%3E%3Ccircle cx='76' cy='41' r='1.4' fill='%23c81e1e'/%3E%3Ccircle cx='80' cy='44' r='1.5' fill='%23facc15'/%3E%3Cpath d='M70 49c-1 7 1 14-1 21 3 2 16 2 19 0-2-7 0-14-1-21H70Z' fill='%23fde68a' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cellipse cx='78.5' cy='49' rx='8.5' ry='2.7' fill='%23d97706' stroke='%231f2428' stroke-width='1.9'/%3E%3Cpath d='M74 66v4M83 66v4' stroke='%231f2428' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* 6. Vegetationspflege (Operador aparando cerca-viva) */
.richter-leistung-card__icon--vegetation {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 84' fill='none'%3E%3Cpath d='M24 37q2-3 4 0q2-3 4 0q2-3 4 0q2-3 4 0q2-3 4 0q2-3 4 0q2-3 4 0q2-3 4 0q3 2 0 4q3 2 0 4q3 2 0 4q3 2 0 4q3 2 0 4q3 2 0 4q3 2 0 4q3 2 0 4q3 2 0 4H24q-3-2 0-4q-3-2 0-4q-3-2 0-4q-3-2 0-4q-3-2 0-4q-3-2 0-4q-3-2 0-4q-3-2 0-4q-3-2 0-4Z' fill='%2328a745' stroke='%231f2428' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M30 44l2 2 2-2M42 43l2 2 2-2M49 48l2 2 2-2M32 54l2 2 2-2M36 63l2 2 2-2M46 61l2 2 2-2M30 68l2 2 2-2M44 68l2 2 2-2' stroke='%231f2428' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='74' cy='23' r='4.8' fill='%23ffffff' stroke='%231f2428' stroke-width='2'/%3E%3Cpath d='M69 21.5c0-3.5 2.5-6 5.5-6s5.5 2.5 5.5 6H64.5c-.8 0-1 1 0 1.4l5.5.4' fill='%23facc15' stroke='%231f2428' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='67' y='28' width='14' height='16' rx='3' fill='%23facc15' stroke='%231f2428' stroke-width='2'/%3E%3Cpath d='M68 34h12v14l3 23h-5.5l-3.5-15-3.5 15H65l3-23V34Z' fill='%23c81e1e' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M70.5 28v6M77.5 28v6' stroke='%23c81e1e' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M62 71h8.5v3H62a1.5 1.5 0 0 1 0-3ZM77.5 71H85a1.5 1.5 0 0 1 0 3h-7.5v-3Z' fill='%231f2428'/%3E%3Cpath d='M68 32l-5 9 4 3M81 31c2.5 3 3 7 1 10l-5 3' stroke='%231f2428' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M61.5 47 41.5 52.5l.8 2.8 20-5.5-.8-2.8Z' fill='%23e5e7eb' stroke='%231f2428' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M43.5 55l1 2 1.5-2.5 1.5 2 1.5-2.5 1.5 2 1.5-2.5 1.5 2 1.5-2.5 1.5 2 1.5-2.5' stroke='%231f2428' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M61 42l12-3.5c1.5-.4 3 .5 3.4 2l1 3.5c.4 1.5-.5 3-2 3.4L63 51l-2-9Z' fill='%23facc15' stroke='%231f2428' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M47 47l2-2.5M48 58.5l2.5 1.5' stroke='%2328a745' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}



/* Card title centered below the icon (without yellow background bar) */
.richter-leistung-card h3 {
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #1f2428;
  background-color: transparent;
  border-bottom: none;
  padding: 0 0.75rem;
  margin: 0.85rem 0 0.75rem;
  text-align: center;
  line-height: 1.3;
}

.richter-leistung-card p {
  font-size: 0.84rem;
  color: #333333;
  line-height: 1.55;
  padding: 0 0.75rem;
  margin: 0 0 1rem;
}

.richter-leistung-card ul {
  padding: 0 0.75rem 0 1.7rem;
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #222222;
}

.richter-leistung-card ul li {
  margin-bottom: 0.5rem;
}

.richter-leistung-card ul li::marker {
  color: var(--richter-red);
}

.richter-leistung-card__btn {
  margin: auto 0.75rem 0;
  display: block;
  text-align: center;
  background-color: var(--richter-red);
  color: #ffffff !important;
  border: 2px solid var(--richter-red);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.richter-leistung-card__btn:hover {
  background-color: var(--richter-yellow);
  border-color: var(--richter-yellow);
  color: #1f2428 !important;
}

/* Bottom CTA section */
.richter-cta {
  margin-top: 3.25rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.richter-cta__lead {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #222222;
  margin: 1.75rem 0;
}

.richter-cta__highlight {
  display: inline-block;
  font-weight: 700;
  color: #1f2428;
  background-color: var(--richter-yellow);
  padding: 0.05rem 0.45rem;
  border-radius: 3px;
}

/* 3 non-clickable feature badges matching the service card palette */
.richter-cta__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 2.25rem;
}

.richter-cta__feature {
  position: relative;
  padding: 1.15rem 1rem 1.15rem 2.5rem;
  background-color: #fff8d6;
  border: 3px solid var(--richter-red);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.richter-cta__feature::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 1.18rem;
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1.15rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--richter-red);
  border-radius: 50%;
}

.richter-cta__feature strong {
  display: block;
  font-size: 0.92rem;
  color: #1f2428;
  margin-bottom: 0.3rem;
}

.richter-cta__feature span {
  display: block;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #333333;
}

/* Centered CTA footer & action buttons */
.richter-cta__footer {
  margin-top: 0.5rem;
  text-align: center;
}

.richter-cta__footer p {
  font-size: 0.94rem;
  color: #333333;
  margin: 0 0 1.25rem;
}

.richter-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  align-items: center;
}

.richter-cta__hotline,
.richter-cta__contact {
  background-color: var(--richter-red);
  color: #ffffff !important;
  border: 2px solid var(--richter-red);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.richter-cta__hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  padding: 0.72rem 1.45rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.richter-cta__contact {
  display: inline-block;
  font-size: 0.95rem;
  padding: 0.72rem 1.35rem;
  letter-spacing: 0.04em;
}

.richter-cta__hotline:hover,
.richter-cta__contact:hover {
  background-color: var(--richter-yellow);
  border-color: var(--richter-yellow);
  color: #1f2428 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

/* Pulsing dot indicator: yellow by default, turns red on button hover */
.richter-cta__pulse {
  --pulse-color: var(--richter-yellow);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--pulse-color);
  transition: background-color 0.2s ease;
  animation: richterPulse 1.5s infinite;
}

.richter-cta__hotline:hover .richter-cta__pulse {
  --pulse-color: var(--richter-red);
}

@keyframes richterPulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse-color) 75%, transparent);
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* =========================================================
   CONVERT FORMS CONTACT FORM (KONTAKT)
   ========================================================= */
.convertforms .cf-control-group input[type="text"],
.convertforms .cf-control-group input[type="email"],
.convertforms .cf-control-group input[type="tel"],
.convertforms .cf-control-group select,
.convertforms .cf-control-group textarea {
  border-radius: 0 !important;
  border: 1px solid #cccccc !important;
}

.convertforms .cf-control-group input:focus,
.convertforms .cf-control-group select:focus,
.convertforms .cf-control-group textarea:focus {
  border-color: var(--richter-red) !important;
  box-shadow: 0 0 0 2px rgba(194, 0, 22, 0.15) !important;
}

/* Checkbox spacing and smaller label text for Datenschutz consent */
.convertforms .cf-control-group input[type="checkbox"] {
  margin-right: 0.75rem !important;
  flex-shrink: 0;
}

.convertforms .cf-control-group input[type="checkbox"] + label,
.convertforms .cf-control-group label:has(input[type="checkbox"]),
.convertforms .cf-checkbox-group label,
.convertforms .cf-list label {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

.convertforms .cf-control-group input[type="checkbox"] + label a,
.convertforms .cf-control-group label:has(input[type="checkbox"]) a,
.convertforms .cf-checkbox-group label a,
.convertforms .cf-list label a {
  font-size: inherit !important;
}

/* Convert Forms submit button: brand red default & brand yellow hover */
body.site #cf_1 .cf-btn,
body.site .convertforms #cf_1 .cf-btn,
body.site #cf_1 .cf-control-group .cf-btn,
body.site .convertforms .cf-btn {
  background: var(--richter-red) !important;
  background-color: var(--richter-red) !important;
  background-image: none !important;
  border: 2px solid var(--richter-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em;
  border-radius: 0 !important;
  padding: 0.72rem 1.35rem !important;
  box-shadow: none !important;
  filter: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.site #cf_1 .cf-btn:hover,
body.site #cf_1 .cf-btn:focus,
body.site .convertforms .cf-btn:hover,
body.site .convertforms .cf-btn:focus {
  background: var(--richter-yellow) !important;
  background-color: var(--richter-yellow) !important;
  border-color: var(--richter-yellow) !important;
  color: #000000 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Disables any gray pseudo-element overlay added by Convert Forms on hover */
body.site #cf_1 .cf-btn::before,
body.site #cf_1 .cf-btn::after,
body.site #cf_1 .cf-btn:hover::before,
body.site #cf_1 .cf-btn:hover::after,
body.site .convertforms .cf-btn:hover::before,
body.site .convertforms .cf-btn:hover::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

/* =========================================================
   PDF DOWNLOAD LIST (MERKBLÄTTER & VERORDNUNGEN)
   ========================================================= */
.richter-pdf-list {
  margin-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
}

.richter-pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid #e2e2e2;
}

.richter-pdf-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--richter-red) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  line-height: 1.35;
}

.richter-pdf-title:hover {
  text-decoration: underline !important;
}

.richter-pdf-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f7f7f7' stroke='%23999999' stroke-width='1.2' d='M5 2h9l5 5v15H5z'/%3E%3Cpath fill='%23c20016' d='M4 12h16v6H4z'/%3E%3Ctext x='12' y='16.5' font-family='Arial,sans-serif' font-size='4.8' font-weight='bold' fill='%23ffffff' text-anchor='middle'%3EPDF%3C/text%3E%3C/svg%3E");
}

.richter-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #58b957;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.richter-pdf-btn:hover {
  background-color: #469e45;
}

/* =========================================================
   RIGHT SIDEBAR: KONTAKT CARD & CUTOUT CRANE IMAGE
   ========================================================= */
body.site .site-grid > .container-sidebar-right {
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  overflow: visible !important;
}

.richter-kontakt-card,
.container-sidebar-right .card {
  position: relative;
  overflow: visible !important;
  background-color: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  padding: 2rem 1.25rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.richter-kontakt-card .card-header,
.richter-kontakt-card h3,
.richter-kontakt-card h4 {
  position: absolute;
  top: -16px;
  left: 14px;
  z-index: 10;
  background-color: #ffffff;
  color: var(--richter-red);
  border: 2px solid var(--richter-red) !important;
  border-radius: 0;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-5deg);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
}

.richter-hotline {
  background-color: var(--richter-yellow);
  padding: 0.5rem 0.75rem;
  margin-top: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.richter-hotline span {
  display: block;
  color: var(--richter-red);
  font-size: 1rem;
}

.richter-hotline a {
  color: inherit !important;
  text-decoration: none;
}

.richter-hotline a:hover {
  text-decoration: underline;
}

/* Static large cutout crane anchored at bottom of right sidebar */
.container-sidebar-right > *:has(.richter-sidebar-crane) {
  position: relative !important;
  top: auto !important;
  margin-top: auto !important;
  margin-bottom: -4rem !important;
  margin-left: -150px !important;
  width: calc(100% + 400px) !important;
  max-width: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  z-index: 20 !important;
  pointer-events: none !important;
}

.container-sidebar-right > *:has(.richter-sidebar-crane) .card-body {
  padding: 0 !important;
  background: transparent !important;
}

.richter-sidebar-crane img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24));
}

/* =========================================================
   FOOTER: FULL-WIDTH YELLOW BAR, 24H STAMP & SOCIAL ICONS
   ========================================================= */
.container-footer {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  overflow: visible !important;
  margin-top: 3.25rem !important;
  padding: 0 !important;
  background-color: var(--richter-yellow) !important;
  background-image: none !important;
  border-top: none !important;
  color: #1a1a1a !important;
}

.container-footer .grid-child {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 1.5rem;
  display: block !important;
}

.richter-footer-wrapper {
  padding: 0.45rem 0 0.55rem;
}

.richter-footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.richter-footer-hotline {
  position: relative;
  padding-top: 1.15rem;
}

.richter-stamp-24h {
  position: absolute;
  top: -42px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--richter-red);
  color: #ffffff;
  padding: 0.55rem 1.05rem;
  transform: rotate(-4deg);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.24);
  z-index: 10;
}

.richter-stamp-24h .stamp-big {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.richter-stamp-24h .stamp-small {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.richter-footer-phone {
  display: block;
  color: var(--richter-red) !important;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none !important;
}

.richter-footer-phone:hover {
  color: #1a1a1a !important;
}

.richter-footer-sub {
  margin: 0.1rem 0 0;
  color: var(--richter-red);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.richter-footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.richter-footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.richter-social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.richter-social-icon:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}

.richter-fb {
  background-color: #1877f2;
  background-size: 21px 21px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M15.12 5.32H17V2.14A26.11 26.11 0 0 0 14.26 2c-2.72 0-4.58 1.66-4.58 4.7v2.62H6.61v3.56h3.07V22h3.68v-9.12h3.06l.46-3.56h-3.52V7.05c0-1.05.29-1.73 1.76-1.73Z'/%3E%3C/svg%3E");
}

.richter-ig {
  position: relative;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  background-size: cover;
}

.richter-ig::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.richter-yt {
  background-color: #ff0000;
  background-size: 22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8.5 5.5v13l10.5-6.5-10.5-6.5z'/%3E%3C/svg%3E");
}

.richter-footer-credit a,
.richter-footer-legal a {
  color: var(--richter-red) !important;
  text-decoration: none;
}

.richter-footer-credit a {
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.2;
}

.richter-footer-legal {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.richter-footer-credit a:hover,
.richter-footer-legal a:hover {
  text-decoration: underline;
}

.richter-footer-legal .richter-sep {
  margin: 0 0.45rem;
  color: var(--richter-red);
}

#back-top,
.back-to-top {
  background-color: #ffffff !important;
  color: var(--richter-red) !important;
  border: 2px solid var(--richter-red) !important;
  border-radius: 0 !important;
  padding: 0.3rem 0.65rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#back-top::after,
.back-to-top::after {
  content: " NACH OBEN";
}

#back-top:hover,
.back-to-top:hover {
  background-color: var(--richter-red) !important;
  color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Desktop (>= 992px): 1250px centered layout & hover dropdowns */
@media (min-width: 992px) {
  .container-header {
    width: calc(min(100%, 1250px) - 300px);
    margin-left: max(0px, calc((100% - 1250px) / 2)) !important;
    margin-right: auto !important;
    box-shadow: -4px -2px 12px rgba(0, 0, 0, 0.08), 4px -2px 12px rgba(0, 0, 0, 0.08);
  }

  .container-header .navbar-brand img {
    max-height: none;
  }

  .container-header .container-nav {
    padding-left: 0 !important;
  }

  .container-header .metismenu.mod-menu > .metismenu-item:hover > ul.mm-collapse {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .container-topbar {
    position: absolute;
    top: 0;
    right: -320px;
    z-index: 50;
    pointer-events: none;
    background: transparent;
  }

  .container-topbar p {
    margin: 0;
  }

  .container-topbar img {
    width: 530px;
    max-width: 530px;
    height: auto;
  }

  body.site .site-grid {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 25px;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.site .site-grid > .grid-child:empty {
    display: none !important;
  }

  body.site .site-grid > .container-component {
    flex: 0 0 calc(100% - 300px);
    width: calc(100% - 300px);
    max-width: calc(100% - 300px);
    margin: 0 !important;
    background-color: #ffffff;
    padding: 1rem 2.5rem 2rem !important;
    min-height: 480px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.08), 4px 4px 12px rgba(0, 0, 0, 0.08);
  }

  body.site .site-grid > .container-sidebar-right {
    flex: 0 0 275px;
    width: 275px;
    max-width: 275px;
    margin: 0 !important;
    padding-top: 3.5rem;
  }
}

/* Medium screens (<= 1199px): 2-column grid for service cards */
@media (max-width: 1199px) {
  .richter-leistungen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .richter-leistung-card {
    min-height: auto;
  }
}

/* Tablet (768px - 991px): Scaled topbar climber cutout */
@media (min-width: 768px) and (max-width: 991px) {
  .container-topbar {
    position: absolute;
    top: 5px;
    right: -120px;
    z-index: 50;
    pointer-events: none;
  }

  .container-topbar img {
    width: 280px;
    max-width: 280px;
    height: auto;
  }
}

/* Tablet & Mobile (<= 991px): Stacked layout, centered footer, hidden sidebar crane */
@media (max-width: 991px) {
  .container-component {
    background-color: #ffffff;
    padding: 1.25rem !important;
  }

  .container-sidebar-right {
    padding: 0.85rem 1.25rem 1.25rem !important;
  }

  .container-sidebar-right > *:has(.richter-sidebar-crane) {
    display: none !important;
  }

  .richter-footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 1.75rem;
  }

  .richter-stamp-24h {
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
  }
}

/* Small Tablet & Mobile (<= 767px): Full-width video, stacked mobile menu, 1-column CTA features */
@media (max-width: 767px) {
  .container-topbar {
    display: none !important;
  }

  .richter-video-box {
    max-width: 100%;
    margin: 1.5rem 0 1rem;
  }

  .container-header .metismenu.mod-menu .metismenu-item {
    display: block;
    width: 100%;
  }

  .container-header .metismenu.mod-menu .metismenu-item > a,
  .container-header .metismenu.mod-menu .metismenu-item > button,
  .container-header .metismenu.mod-menu .metismenu-item > .mm-toggler {
    width: 100%;
    padding: 0.65rem 0.5rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .container-header .metismenu.mod-menu .metismenu-item:last-child > a {
    border-bottom: none !important;
  }

  .richter-cta__features {
    grid-template-columns: 1fr;
  }
}

/* Mobile (<= 599px): narrower centered 1-column service cards */
@media (max-width: 599px) {
  .richter-leistungen__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .richter-leistung-card {
    max-width: 290px;
    margin: 0 auto;
    padding-bottom: 1rem;
  }

  .richter-leistung-card h3 {
    padding: 0.75rem 0.45rem;
    margin-bottom: 0.85rem;
  }

  .richter-leistung-card ul {
    margin-bottom: 1rem;
  }

  .richter-leistung-card__btn {
    margin-top: 0.25rem;
  }
}

/* Small Mobile (<= 576px): Compact slider & stacked PDF download rows */
@media (max-width: 576px) {
  .richter-slider img {
    height: 260px;
  }

  .richter-pdf-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* ----------- */
.youtube-preview-link {
  background-color: #000;
}

.youtube-preview-link img {
  transition: filter 0.25s ease;
}

.youtube-preview-link:hover img {
  filter: brightness(0.92);
}

/* Botão central com o SVG oficial do YouTube (imune a emoji e ao filtro do TinyMCE) */
.youtube-play-btn {
  width: 68px;
  height: 48px;
  font-size: 0;
  line-height: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='%23ff0000'/%3E%3Cpath d='M45 24 27 14v20' fill='%23ffffff'/%3E%3C/svg%3E");
  transition: transform 0.2s ease;
}

.youtube-preview-link:hover .youtube-play-btn {
  transform: scale(1.06);
}

/* Etiqueta no canto inferior direito igual ao player nativo */
.youtube-watch-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(23, 23, 23, 0.85);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.youtube-watch-badge::after {
  content: "YouTube";
  font-weight: 700;
  padding-left: 19px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 15px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 17'%3E%3Cpath d='M23.5 2.7a3 3 0 0 0-2.1-2.1C19.5 0 12 0 12 0S4.5 0 2.6.6A3 3 0 0 0 .5 2.7C0 4.6 0 8.5 0 8.5s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8z' fill='%23ffffff'/%3E%3Cpath d='M9.6 12.1 15.8 8.5 9.6 4.9v7.2z' fill='%23171717'/%3E%3C/svg%3E");
}