*{
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
  color: #000000;
}
:root {
  /* Colors */ 
  --zes-white: #E7F0F5; 
  --zes-black: #000000; 
  --zes-green: #317581; 
  --zes-dark-green: #463D27;
  --zes-grey: #CCD7E4;
  --zes-gold: #cdad84;
  --zes-brown: #463D27;
  --zes-light-gold: #e0d3b7;
 
  /* Elements */
  --arrow-slide-100: url(/wp-content/themes/zes_theme/images/arrow_slide_100.svg);
  --arrow-slide-40: url(/wp-content/themes/zes_theme/images/arrow_slide_40.svg);
  --arrow-secondary-arrow: url(/wp-content/themes/zes_theme/images/btn-secondary-arrow.svg);
  --radius: 100px; 

  /* Breakpoints */
  --breakpoint-laptop: 1380px; 
  --breakpoint-mobile: 870px; 

  /* Layout */
  --layout-screen: 1440px;
  --layout-inner: 860px;
 
  /* Margin */
  --margin-top-screen: 100px;
  --margin-top-mobile: 40px;
  --margin-bottom-screen: 100px;
  --margin-bottom-mobile: 50px;
  --padding: 0 2rem;
  
  /* Fonts */
  --font-zes-reg: 'RobotoRegular', sans-serif; 
  --fs-bottom: 0.825rem;
}  

 
@font-face {
  font-family: 'RobotoBold';
  src: url('/wp-content/themes/zes_theme/fonts/Roboto-Bold.woff2') format('woff2'),
       url('/wp-content/themes/zes_theme/fonts/Roboto-Bold.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RobotoRegular';
  src: url('/wp-content/themes/zes_theme/fonts/Roboto-Regular.woff2') format('woff2'),
       url('/wp-content/themes/zes_theme/fonts/Roboto-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
 
@font-face {
  font-family: 'RobotoLight';
  src: url('/wp-content/themes/zes_theme/fonts/Roboto-Light.woff2') format('woff2'),
       url('/wp-content/themes/zes_theme/fonts/Roboto-Light.woff') format('woff');
  font-weight: 200;  
  font-style: normal;
  font-display: swap;
} 

@font-face {
  font-family: 'RobotoSlabRegular';
  src: url('/wp-content/themes/zes_theme/fonts/RobotoSlab-Regular.woff2') format('woff2'),
       url('/wp-content/themes/zes_theme/fonts/RobotoSlab-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RobotoSlabSemiBold';
  src: url('/wp-content/themes/zes_theme/fonts/RobotoSlab-SemiBold.woff2') format('woff2'),
       url('/wp-content/themes/zes_theme/fonts/RobotoSlab-SemiBold.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

li {
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p { 
  margin-bottom: var(--fs-bottom); 
  font-family: var(--font-zes-reg);
  text-transform: none; 
  word-break: break-word; 
  font-weight: 400;
} 

table.contenttable {
  margin-bottom: var(--fs-bottom); 
  font-family: var(--font-zes-reg);
  text-transform: none; 
  word-break: break-word; 
  font-weight: 400;
  font-size: calc(12 / 16 * 1rem);  
}

h1 { 
  font-size: calc(45 / 16 * 1rem);
  line-height: 1.2;  
  color: var(--zes-brown);
}

h2 { 
  font-size: calc(23px + (60 - 23) * ((100vw - 300px) / (3840 - 300)));
  line-height: 1.35; 
}

h3 { 
  font-size: calc(40px + (60 - 52) * ((100vw - 300px) / (3840 - 300)));
  line-height: 1.2; 
  color: var(--zes-brown);
}

h4 { 
  font-size: calc(21px + (36 - 21) * ((100vw - 300px) / (3840 - 300)));
  line-height: 1.35; 
}

h5 { 
  font-size: calc(18px + (32 - 18) * ((100vw - 300px) / (3840 - 300)));
  line-height: 1.4; 
}

p { 
  font-size: calc(18 / 16 * 1rem);
  line-height: 1.5; 
  hyphens: none;
}

p > em {
  font-size: calc(12px + (80 - 42) * ((100vw - 300px) / (3840 - 300)));
  line-height: 1.2;
  font-style: italic;
}

p > strong {
  font-family: var(--font-zes-reg);
  color: #000000;
}

p > a {
  text-decoration: none;
  color: var(--it-blue);
  font-family: 'MontserratSemiBold', sans-serif;
  transition: 0.5s color ease;
  font-weight: 600;
}

p > a:hover {
  color: var(--it-hover);
}

a {
  font-family: var(--font-zes-reg);
  text-transform: none;
  list-style: none;
  text-decoration: none;
}

.wrapper {
  max-width: var(--layout-screen);
  margin: 0px auto 0;
}

.wrapper.custom-margin-top {
  margin-top: 150px;
}

.layout {
  max-width: var(--layout-screen);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--margin-top-screen);
  padding-bottom: var(--margin-bottom-screen);
  box-sizing: border-box;
}

.layout-s {
  max-width: var(--layout-inner);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--margin-top-screen);
  padding-bottom: var(--margin-bottom-screen);
  box-sizing: border-box;
}

.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}


ul {
  list-style: none; 
  padding: 0; 
  margin: 0 0 20px;  
}

ul li {
  position: relative; 
  margin-bottom: 5px;  
  padding-left: 20px; 
  font-family: 'RobotoRegular', sans-serif; 
}

ul li:last-of-type {  
  margin-bottom: 0px;   
}

ul li::before {
  content: '';  
  position: absolute;
  left: 0;  
  top: 9px;  
  width: 10px; 
  height: 0.5px;  
  background-color: #000;  
  transform: translateY(-50%); 
}

ul li strong {
  font-weight: bold;  
  color: #000000;  
}

.layout.no-margin,
.layout-s.no-margin {
  padding-bottom: 0;
}

.wrapper > .margin-top {
  margin-top: 50px;
}

body.error404 > .wrapper > .margin-top > main {
  margin-top: 150px;
  margin-bottom: 150px;
  padding: 30px;
  box-sizing: border-box;
}

body.error404 > .wrapper > .margin-top > main h1 {
  font-size: calc(35 / 16 * 1rem);
  line-height: 1.4;
}

/* Buttons */
.btn-primary-wrapper {
  position: relative;
  width: fit-content;
}

  
.btn-primary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: fit-content;
  min-height: 56px;
  font-family: var(--font-zes-reg);
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: gap 0.5s linear;
  margin-top: 20px;
  position: relative;
  font-size: calc(18 / 16 * 1rem);
  background: var(--zes-brown);
  color: #ffffff;
  width: fit-content;
  padding: 2px 30px;
  gap: 15px;
} 
 
.btn-primary > img {
  margin-left: 0;
}

.btn-primary:hover {
  gap: 25px!important;
}

/* Button Secondary */
.btn-secondary { 
  font-family: 'RobotoRegular', sans-serif;
  padding: 0;
  box-sizing: border-box;
  color: var(--zes-brown);
  display: flex;
  align-items: center;
  font-size: calc(21 / 16 * 1rem);
  gap: 15px;
  transition: gap 0.5s linear;
} 

.btn-secondary > img {
  width: 25px;
}

.btn-secondary:hover {
  gap: 25px!important;
}

button#btn-presse {
  background: var(--zes-light-gold);
  color: #000000;
  border: none;
  padding: 12px 25px;
  margin-top: 2rem;
  border-radius: 10px;
  font-size: calc(21 / 16 * 1rem);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: 'RobotoRegular', sans-serif;
}

button#btn-presse svg {
  width: 25px;
  height: auto;
}
/* ++++++++++++++++++++++++++++++++ */
/********** Footer **************/
/* ++++++++++++++++++++++++++++++++ */

.footer-leiste {
  background: var(--zes-black);
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw; 
}

.footer-leiste .layout {
  flex-direction: column; 
  display: flex; 
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--margin-bottom-mobile);
  gap: 40px;
} 

.footer-leiste .logo-leiste {
  display: flex;
  gap: 35px;
  align-items: center; 
}

.footer-leiste .logo-leiste > img {
  width: 166px;
  object-fit: contain;
}

.footer-leiste .logo-leiste .text {
  display: flex;
  flex-direction: column;
  color: #463D27;
}

.footer-leiste .logo-leiste .text p {
  margin: 0;
  padding: 0;
  font-size: calc(15 / 16 * 1rem);
}

.footer-leiste .logo-leiste .text p:first-of-type {
  font-family: 'RobotoBold', sans-serif;
} 

.footer-leiste .menu-leiste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 70px; 
  border-top: 1px solid #CEEAF7;
  padding-top: 40px;
}

.footer-leiste .menu-leiste .adress {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-leiste .menu-leiste .adress p {
  text-align: center;
  font-size: calc(14 / 16 * 1rem);
}

.footer-leiste .menu-leiste a {
  text-decoration: none;
  color: #000000;
  text-align: center;
}

.footer-leiste .menu-leiste .adress p.ort {
  word-break: break-word;
  max-width: 135px;
}

.footer-leiste .menu-leiste .col,
.footer-leiste .menu-leiste ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-leiste > div > div.menu-leiste > div:nth-child(2) ul {
  max-width: 200px;
}

.footer-leiste .menu-leiste ul {
  gap: 20px;
}

.footer-leiste .menu-leiste ul > li {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-leiste .menu-leiste ul > li > a {
  text-decoration: none;
  color: #000000;
  font-family: 'RobotoRegular', sans-serif;
  text-align: center;
  font-size: calc(14 / 16 * 1rem);
}

.footer-leiste .menu-leiste ul > li::before {
  content: unset;
}

.footer-leiste > div .copyright p {
  font-size: 14px;
  color: #ACB1B5;
  max-width: 100%;
  margin: 0;
} 

.footer-leiste .menu-leiste .col h4 {
  font-family: 'RobotoRegular', sans-serif;
}

 


/* ++++++++++++++++++++++++++++++++ */
/********** Navigation **************/
/* ++++++++++++++++++++++++++++++++ */

nav.navigation ul {
  padding: 0;
  margin-top: 30px;
}

nav.navigation ul li::before {
  display: none;
}

nav.navigation ul li {
  font-size: 24px;
  line-height: 1;
  font-family: var(--font-zes-reg);
  text-transform: none;
  list-style: none; 
  display: flex;
  align-items: center;
  position: unset;
  margin: unset;
  padding: unset;
} 

nav.navigation .nav-wrapper > div ul li.current-menu-item > a {
  color: var(--zes-black);
  font-weight: 400;
}

nav.navigation ul li a {
  font-size: 24px;
  font-family: var(--font-zes-reg);
  font-weight: 400;
}

nav {
  width: 100%;  
  background-color: transparent;
  position: fixed;
  position: relative;
  position: sticky;
  z-index: 999; 
  top: 0;
  left: 0;
}

nav {
  visibility: hidden; /* Navigation standardmäßig unsichtbar */
}
nav.visible {
  visibility: visible; /* Navigation sichtbar, wenn die Seite geladen ist */
}

nav.no-padding {
  top: 0;
}

.subnav {
  width: 100%;
  height: 45px;
  background: #F5F5F5;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 5px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center; 
}
  
.subnav .subnav-wrap {
  max-width: var(--layout-screen);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
}

.subnav .subnav-wrap .links {
  display: flex;
  gap: 25px;
}

.subnav .subnav-wrap .links div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subnav .subnav-wrap .links div > img {
  width: fit-content;
  height: 16px;
}

.subnav .subnav-wrap .links div a {
  text-decoration: none;
  color: #317581;
}

.subnav .subnav-wrap .social {
  gap: 15px;
  display: flex;
  align-items: center;
}

body.page nav {
  background-color: var(--zes-green);
}

nav .nav-wrapper { 
  width: 100%;
  max-width: var(--layout-screen);
  display: flex;
  justify-content: space-between; 
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}

nav .nav-wrapper .right-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

nav .nav-wrapper .left-nav {
  display: flex;
  gap: 50px; 
  justify-content: space-between;
  width: 100%;
}

nav .nav-wrapper .left-nav a {
  display: flex;
  align-items: center;
}

nav .nav-wrapper .left-nav > div {
  display: flex;
  align-items: flex-end;
}
 
/* nav .nav-wrapper .left-nav ul.sub-menu {
  display: none;
} */

nav .nav-wrapper .left-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 40px; 
  margin-top: 0;
}

nav .nav-wrapper .left-nav ul li {
  display: flex;
  align-items: center;
}

nav .nav-wrapper .left-nav ul li::after {
  content: '|';
  font-family: 'RobotoLight', sans-serif;
  width: 0.5px;
  height: 100%;
  margin-left: 15px;
  margin-right: 0;
  color: #6B6B6B;
}

nav .nav-wrapper .left-nav ul li:last-of-type::after {
  content: '';
}

nav .nav-wrapper .left-nav ul li > a { 
  font-family: 'RobotoRegular', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--zes-black);
}

nav .nav-wrapper .left-nav ul li > a:hover {
  color: var(--zes-black);
}

nav .nav-wrapper .left-nav ul li.current-menu-item > a {
  color: var(--zes-black);
  font-weight: 400;
  text-transform: uppercase;
}

nav a.close,
nav a.open {
  display: none;
  align-items: center;
} 

nav a.close.show {
  display: block;
}

nav .nav-wrapper .left-nav a > img:first-of-type {
  width: 100px;
  height: auto;
} 

nav .nav-wrapper .left-nav a > .company {
  margin-left: 15px;
}
nav .nav-wrapper .left-nav a > .company p {
  font-size: calc(8/16 * 1rem);
  margin: 0;
  max-width: 100%;
  color: var(--zes-gold);
} 

nav .nav-wrapper .left-nav a > .company p > strong {
  color: var(--zes-gold);
}

nav .close > svg, 
nav .open > svg {
  width: 30px;
  height: 30px;
  color: #000000;
}


nav ul#menu-main-menu > li > ul.sub-menu,
nav ul#menu-main > li > ul.sub-menu {
  display: none;
}
 

.menu-item.menu-item-type-custom.menu-item-has-children {
  position: relative;
}

nav ul#menu-main-menu .menu-item.menu-item-has-children .sub-menu.active,
nav ul#menu-main .menu-item.menu-item-has-children .sub-menu.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: absolute;
  top: 30px;
  left: -25px;
  margin: 0;
  padding: 25px;
  background: #ffffff;
  width: 100%;
  opacity: 1;
  min-width: 180px;
} 

nav ul#menu-main-menu .menu-item.menu-item-has-children .sub-menu.active > li > a {
  font-size: 16px;
}


nav ul#menu-main-menu > li.menu-item-has-children.active > a::after,
nav ul#menu-main > li.menu-item-has-children.active > a::after {
  transform: rotate(180deg) scale(1);
}

nav ul#menu-main-menu .menu-item.menu-item-has-children .sub-menu li::after,
nav ul#menu-main .menu-item.menu-item-has-children .sub-menu li::after {
  content: '';
}


nav ul#menu-main-menu > li.menu-item-has-children > a::after,
nav ul#menu-main > li.menu-item-has-children > a::after {
  content: url(/wp-content/themes/zes_theme/images/accordion.svg);
  transform: rotate(0) scale(1);
  margin-left: 10px;
  cursor: pointer;
  width: 20px;
  height: auto;
  display: block;
}


nav ul#menu-main-menu > li.menu-item-has-children.active::after,
nav ul#menu-main > li.menu-item-has-children.active::after { 
  content: "|"; 
}

nav a.close.show,
nav > .wrapper.mobile > div.mobile {
  display: none;
}

nav ul#menu-main-menu > li.menu-item-has-children.active > ul.sub-menu,
nav ul#menu-main > li.menu-item-has-children.active > ul.sub-menu {
  display: block;
  position: absolute;
  top: 80px;
  left: 0;
  background: var(--zes-green);
  padding: 20px;
  margin: 0;
  gap: 15px;
  display: flex;
  width: 100%;
  justify-content: center;
  opacity: 0; 
} 

/* nav ul#menu-main > li.menu-item-has-children.active > a {
  color: #d6dee7;
  font-weight: 400;
} */

nav ul#menu-main-menu > li.menu-item-has-children.active > ul.sub-menu > li > a:hover, 
nav ul#menu-main > li.menu-item-has-children.active > ul.sub-menu > li > a:hover {
  color: #000000;
}

nav > .wrapper > .left-nav > div.screen-nav > ul#menu-main > li > ul.sub-menu > li > ul  {
  display: none; 
}

div.wp-gr.wpac a.wp-google-name,
div.wp-google-right > .wp-google-powered {
  color: #ffffff!important;
}

div.wp-google-right > .wp-google-powered > img {
  display: none;
}

.profil .person {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 120px;
  margin-top: 4rem;
}

.profil .person img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.profil .person .vorstellung p {
  font-size: calc(18 / 16 * 1rem);
  line-height: 1.4;
  font-family: 'RobotoRegular', sans-serif;
}

.profil .person .vorstellung h3 {
  font-size: calc(24 / 16 * 1rem);
  line-height: 1.4;
  font-family: 'RobotoBold';
  color: var(--zes-brown);
}

.profil .kontakt-wrapper {
  display: grid;
  grid-template-columns: 450px 1fr;
  margin-top: 2rem;
  gap: 120px;
} 

.profil .kontakt-wrapper .qualifikation p.title,
.profil .kontakt-wrapper .kontakt p.title {
  font-size: calc(24 / 16 * 1rem);
  line-height: 1.4;
  font-family: 'RobotoBold';
  color: var(--zes-brown);
}

.profil .kontakt-wrapper .kontakt .spez .item,
.profil .kontakt-wrapper .kontakt .phone,
.profil .kontakt-wrapper .kontakt .mail {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.profil .kontakt-wrapper .kontakt .spez .item > img,
.profil .kontakt-wrapper .kontakt .phone > img,
.profil .kontakt-wrapper .kontakt .mail > img {
  width: 15px;
  height: 100%;
  object-fit: contain;
}

.profil .kontakt-wrapper .kontakt .spez {
  margin-top: 2rem;
}

.profil .kontakt-wrapper .kontakt .spez.no-padding {
  margin-top: 0;
}

.profil .kontakt-wrapper .kontakt .spez .item p {
  margin: 0;
} 

.profil .kontakt-wrapper .qualifikation .items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profil .kontakt-wrapper .qualifikation .items .item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 20px;
  align-items: flex-start;
}
 
.profil .kontakt-wrapper .kontakt .phone > a,
.profil .kontakt-wrapper .kontakt .mail > a {
  text-decoration: none;
  color: #000000;
  font-size: calc(21 / 16 * 1rem);
  line-height: 1.4;
  font-family: 'RobotoRegular', sans-serif;
  font-weight: 400;
}

.profil .kontakt-wrapper .qualifikation .items .item p {
  font-size: calc(18 / 16 * 1rem);
  line-height: 1.4;
  font-family: 'RobotoRegular', sans-serif;
  margin: 0;
}

.profil .kontakt-wrapper .qualifikation .items .item p.jahr {
  font-size: calc(14 / 16 * 1rem);
  line-height: 1.4;
  word-break: break-word;
  max-width: 85px;
  transform: translateY(2px);
}

/* BLOG */
body.category .content-container,
body.blog .content-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

body.category .main-section,
body.blog .main-section {
  flex: 0 1 70%;
}

body.category .sidebar,
body.blog .sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

body.category .posts-container,
body.blog .posts-container { 
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

body.category .post-card,
body.blog .post-card {
  display: flex;
  flex-direction: column;
  background-color: #fff; 
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.category .post-card .post-thumbnail > img,
body.blog .post-card .post-thumbnail > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

body.category .widget.top-posts .post-thumbnail img, 
body.blog .widget.top-posts .post-thumbnail img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 15px;
}

body.category .post-info,
body.blog .post-info {
  padding: 10px;
  box-sizing: border-box;
}

body.category .post-title,
body.blog .post-title {
  font-size: calc(21 / 16 * 1rem);
  margin: 0 0 10px;
  font-family: 'RobotoSlabRegular', sans-serif;
}

body.category .post-date,
body.single .wrapper .post .post-date,
body.blog .post-date {
  font-size: 0.9em;
  color: #463D27;
  font-family: 'RobotoRegular', sans-serif;
  margin-bottom: 20px;
}

body.category .post-description,
body.blog .post-description {
  margin-bottom: 20px;
  font-family: 'RobotoRegular', sans-serif;
  font-size: calc(16 / 16 * 1rem);
  line-height: 1.4;
  color: #444;
}

body.category .read-more,
body.blog .read-more {
  color: var(--zes-dark-green);
  display: flex;
  gap: 15px;
  align-items: center;
  text-decoration: none;
  font-size: calc(18 / 16 * 1rem);
  margin-top: 2rem;
}

body.category .read-more > img,
body.blog .read-more > img {
  width: 20px;
}

body.category .widget,
body.blog .widget { 
  padding: 20px;
  background-color: #f9f9f9;
}

body.category .widget h2,
body.blog .widget h2 {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #463D27;
}

body.category .widget ul,
body.blog .widget ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.category .widget ul li,
body.blog .widget ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
}

body.category .widget.categories ul li a, 
body.blog .widget.categories ul li a {
  color: #463D27;
  font-family: 'RobotoRegular';
}

body.category .widget.top-posts ul li,
body.blog .widget.top-posts ul li {
  align-items: center; 
  border-bottom: 1px solid #CEEAF7;
  padding-bottom: 15px;
}

body.category .widget.top-posts ul li:last-of-type,
body.blog .widget.top-posts ul li:last-of-type {
  border-bottom: none;
}

body.category .widget.top-posts ul li a,
body.blog .widget.top-posts ul li a {
  font-family: 'RobotoRegular';
  color: #463D27;
  font-size: calc(16 / 16 * 1rem);
  line-height: 1.3;
}

body.category .widget.top-posts ul li a:hover,
body.blog .widget.top-posts ul li a:hover {
  color: #000000;
}

body.category .widget ul li::before,
body.blog .widget ul li::before {
  display: none;
}

body.category .pagination,
body.blog .pagination {
  text-align: center; 
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  margin-top: 2rem;
  gap: 5px;
}

body.category .pagination .page-numbers,
body.blog .pagination .page-numbers {
  margin: 0;
  padding: 10px;
  background-color: var(--zes-gold);
  color: #fff;
  text-decoration: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'RobotoRegular';
}

body.category .pagination .page-numbers.current,
body.blog .pagination .page-numbers.current {
  background-color: var(--zes-dark-green)
}

body.category .pagination .prev.page-numbers,
body.category .pagination .next.page-numbers,
body.blog .pagination .prev.page-numbers,
body.blog .pagination .next.page-numbers { 
  width: fit-content;
}

body.category .intro,
body.blog .intro {
  margin-bottom: 4rem;
}

body.single .wrapper .post {
  max-width: 770px;
  margin: 0 auto;
  padding-top: 80px;
  box-sizing: border-box;
}

body.single .wrapper .post .post-date,
body.single .wrapper .post h1,
body.single .wrapper .post ul,
body.single .wrapper .post ol,
body.single .wrapper .post figure,
body.single .wrapper .post p {
  margin-bottom: 40px;
}

body.single .wrapper .post p {
  margin-bottom: 25px;
}

body.single .wrapper .post ol > li, 
body.single .wrapper .post ul li {
  font-size: calc(18 / 16 * 1rem);
  line-height: 1.5;
  hyphens: none; 
  font-family: var(--font-zes-reg);
}

body.single .wrapper .post .post-date {
  margin-bottom: 80px;
}

body.single .wrapper .post ol > li > ol, 
body.single .wrapper .post ul > li > ul {
  margin: 15px 0 20px 0;
}

body.single-job .head-job {
  background: #efefef;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

body.single-job .head-job .title {
  max-width: var(--layout-inner);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--margin-top-screen);
  padding-bottom: 100px;
  box-sizing: border-box;
}

.wp-block-table {
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 0 2rem;
  box-sizing: border-box;
  font-size: calc(18 / 16* 1rem);
  line-height: 1.5;
  font-family: 'RobotoSlabRegular', sans-serif;
}

hr.wp-block-separator.has-alpha-channel-opacity,
hr.wp-block-separator.has-alpha-channel-opacity.is-style-wide {
  margin: 0 0 30px;
  border: 1px solid #e7e7e7;
  width: 100%!important;
}

/* ++++++++++++++++++++++++++++++++ */
/********** Laptop Query ************/
/* ++++++++++++++++++++++++++++++++ */
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after,
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
  color: #463D27;
}

.leaflet-rrose-content
.hotspot-title {
  text-align: left;
  font-size: calc(26 / 16 * 1rem);
  font-weight: 600;
}

.side-box {
  position: fixed;
  right: 0;
  top: 25%;
  z-index: 20;
  gap: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.side-box a {
  width: 75px;
  height: 75px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--zes-gold);
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

.side-box .social {
  display: flex; 
  background: var(--zes-brown);
}

.side-box .social a {
  width: 37.5px;
  height: 37.5px;
  padding: 7px;
  box-sizing: border-box;
  background: transparent;
}

.side-box .social a > img {
  width: 15px;
  height: 15px;
}

.side-box a > p {
  margin: 0;
  line-height: 1;
  color: var(--zes-brown);
  text-decoration: none;
  font-size: calc(12 / 16 * 1rem);
  text-align: center;
}

.side-box a > img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* Popup */
.pum-title, .pum-theme-standard-theme .pum-title {
  font-family: var(--font-zes-reg)!important;
}

.pum-theme-standard-theme .pum-content {
  max-width: 90%!important;;
  color: #000000!important;
  font-family: var(--font-zes-reg)!important;
}

button.pum-close.popmake-close {
  right: 0px!important;;
  bottom: auto!important;;
  top: 0!important;; 
  font-size: 14px!important;; 
  background-color: var(--zes-gold)!important;;
}

.pum-container.popmake {
  padding: 30px!important;
  background: #efefef!important;;
  color: #000000!important;;
}

.wp-block-image img {
    max-width: var(--layout-inner);
    width: 100%;
}

@media only screen and (max-width: 1380px) { 
    
  h1, h2, h3, h4, h5, h6, p {
    max-width: 85%;   
    word-wrap: break-word;
    word-break: break-word;
  }

  nav.mobile {
    height: 100vh;
    position: fixed;
    position: sticky;
    top:45px;
  }

  nav {
    background-color: var(--zes-green);
  }

  nav .nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }

  nav .nav-wrapper .left-nav > .screen-nav {
    display: none;
  }

  nav > .wrapper.mobile > div.mobile,
  nav a.close.show,
  nav a.open {
    display: flex;
  }

  nav > .wrapper.mobile > div.mobile > ul li {
    flex-direction: column;
  }

  nav .nav-wrapper .left-nav {
    flex-direction: column;
    gap: 15px;
  }

  nav .nav-wrapper > div.mobile { 
    grid-column-start: 1;
    grid-column-end: 3;
  }

  nav .nav-wrapper > div.mobile ul {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  nav .nav-wrapper > div.mobile ul li a { 
    font-size: 32px;
    font-family: var(--font-zes-reg);
    color: var(--zes-brown);
  }

  nav .nav-wrapper > div.mobile ul > li > ul.sub-menu {
    margin: 10px;
    gap: 0;
  }

  nav .nav-wrapper.mobile > div.mobile ul > li > ul.sub-menu > li > a {
    font-size: 24px;
  }

  nav .nav-wrapper.mobile > div.mobile ul > li > ul.sub-menu > li > ul.sub-menu {
    display: none;
    gap: 5px;
    margin: 10px;
  }

  nav .nav-wrapper.mobile > div.mobile ul > li > ul.sub-menu > li > ul.sub-menu > li > a {
    font-size: 16px;
  }

  .layout {
    max-width: var(--layout-inner);
    margin: 0 auto; 
  }

  .footer-leiste .menu-leiste {
    grid-template-columns: repeat(2, 1fr);
  }

  .profil .kontakt-wrapper,
  .profil .person {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .profil .kontakt-wrapper .kontakt .phone > a, 
  .profil .kontakt-wrapper .kontakt .mail > a,
  .profil .kontakt-wrapper .kontakt .spez .item p
  {
    font-size: calc(16 / 16 * 1rem);
  }
  .profil .kontakt-wrapper .qualifikation .items .item {
    grid-template-columns: 95px 1fr;
  }
  body.category .posts-container,
  body.blog .posts-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .menu-item.menu-item-type-custom.menu-item-has-children {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }  

  nav .nav-wrapper.mobile > div.mobile ul > li > ul.sub-menu > li > a {
    font-size: 24px;
  }

  nav .nav-wrapper > div.mobile ul > li > ul.sub-menu {
    margin: 1rem 0 0;
    gap: 25px;
    background: #efefef;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    display: none;
  }

  li.menu-item.menu-item-has-children > a {
    width: 100%;
    display: flex;
    gap: 5px;
    justify-content: space-between;
  }
  li.menu-item.menu-item-has-children > a::after {
    content: url(/wp-content/themes/zes_theme/images/accordion.svg);
    transform: rotate(0) scale(1.2);
    margin-left: 0;
    cursor: pointer;
    width: 25px;
    height: 100%;
    display: block;
  }
  li.menu-item.menu-item-has-children.open > a::after {
    transform: rotate(180deg) scale(1.2) translateX(5px) translateY(-10px);
    width: 25px;
  }
}   

@media only screen and (max-width: 840px) {
  body.single .wrapper .post { 
    padding: 2rem;
  }
  body.single .wrapper .post h1,
  body.single .wrapper .post ul,
  body.single .wrapper .post figure,
  body.single .wrapper .post p {
    margin-bottom: 40px;
  }
  body.single-job .head-job .title {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  body.single-job .head-job {
    background: #efefef;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
    display: inline-block;
  }
  .btn-primary {
    word-break: break-word;
    hyphens: auto; 
    margin-top: 20px;
    padding: 0px 15px!important;
  }
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
    hyphens: none;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.2;
    hyphens: none;
  }

  h3 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  h4 {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  h5 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  h1, h2, h3, h4, h5, h6, p { 
    max-width: 100%;
  }

  p {
    font-size: calc(16 / 16 * 1rem);
  }

  .wrapper.custom-margin-top {
    margin-top: 80px;
  }

  .footer-leiste .logo-leiste {
    flex-direction: column;
    gap: 20px;
  }

  .footer-leiste > div > div.menu-leiste > div:nth-child(2) ul {
    max-width: 100%;
  }

  .footer-leiste .logo-leiste .text {
    text-align: center;
  }

  .footer-leiste > div { 
    flex-direction: column;
  } 

  .footer-leiste > div .footer-nav {
    margin-top: 20px; 
  }

  .footer-leiste > div .footer-nav ul {
    gap: 40px;
  }

  .layout,
  .layout-s {
    padding-top: var(--margin-top-mobile);
    padding-bottom: var(--margin-bottom-mobile);

  }

  .footer-leiste > div .copyright p {
    text-align: center;
  }
  
  .footer-leiste .menu-leiste {
    grid-template-columns: repeat(1, 1fr);
    gap: 60px;
  }

  .footer-leiste .menu-leiste ul > li > a {
    font-size: calc(24 / 16 * 1rem);
  }
 
  .footer-leiste .menu-leiste .col h4 { 
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 0.8px;
  }

  .wrapper > .margin-top {
    margin-top: 35px;
  }

  nav .nav-wrapper {
    grid-template-columns: 1fr 45px;
  }

  nav .nav-wrapper .left-nav a { 
    align-items: center;
    gap: 7px;
  }

  nav .nav-wrapper .left-nav a > .company {
    margin-left: 0;
    margin-top: 0;
  }

  nav .nav-wrapper .left-nav a > .company p {
    font-size: calc(8 / 16 * 1rem);
  }

  nav .nav-wrapper .left-nav a > img:first-of-type {
    width: 75px;
  }

  nav .nav-wrapper {
    padding: 15px;
    box-sizing: border-box;
  }

  body.error404 > .wrapper > .margin-top > main h1 {
    font-size: calc(32 / 16 * 1rem);
    line-height: 1.3;
  }
  body.error404 > .wrapper > .margin-top > main {
    margin: 100px 0 40px;
  }

  .profil .kontakt-wrapper, 
  .profil .person {
    grid-template-columns: 1fr;
  }

  .profil .kontakt-wrapper .kontakt .phone > a, .profil .kontakt-wrapper .kontakt .mail > a, .profil .kontakt-wrapper .kontakt .spez .item p {
    font-size: calc(14 / 16 * 1rem);
  }

  body.category .content-container,
  body.blog .content-container {
    grid-template-columns: repeat(1, 1fr);
  }

  body.category .widget.top-posts ul li a,
  body.blog .widget.top-posts ul li a {
    font-size: calc(21 / 16 * 1rem);
  }

  .wrapper {
    margin-top: 0px;
  }
  .subnav {
    height: auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    display: none;
  }
  .subnav .subnav-wrap .links {
    flex-direction: column;
  }
  .subnav .subnav-wrap {
    max-width: 100%; 
    display: grid;
    grid-template-columns: 243px 30px;
    gap: 0;
    justify-content: flex-start;
  }
  .subnav .subnav-wrap .links > div {
    display: none;
  }
  .subnav .subnav-wrap .links > .tel {
    display: block;
  }

  nav.mobile,
  nav {
    top: 0;
  }

  table.contenttable tbody,
  table.contenttable tr {
    display: flex;
    flex-direction: column;
    font-size: calc(18 / 16 * 1rem);
    line-height: 1.6;
  }

  table.contenttable tbody {
    gap: 20px;
  }

  .side-box {  
    right: auto;
    top: auto;
    gap: 2px;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 75px);
  }

  .side-box .social a {
    width: 45px;
    height: 45px;
    background: var(--zes-brown);
  }

  .side-box .social {
    gap: 2px;
    background: transparent;
    right: 0;
    position: absolute;
    bottom: 0;
    display: none;
  }

  body.single .wrapper .post .post-date {
    margin-bottom: 10px;
  }
  body.single .wrapper .post h1 {
    margin-bottom: 20px;
    hyphens: auto;
    word-break: break-word;
  }
} 